Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8097509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:47:01+00:00 2026-06-05T21:47:01+00:00

I have two information and want them to be displayed at the same time.

  • 0

I have two information and want them to be displayed at the same time.

 f=     1.4000    0.8000


 d=    8.0000    8.2000

I used several codes here is one example:

 bar([d, f], 'stacked'); 
 legend(' ', ' '); 
 xlabel('every 5 Run of runs'); 
 ylabel(' ')
 axis([0 T  0 N])
 hold on;

What I am getting :

1:the two legends and graph are of the same color

2:they are displayed one after the other.

3:the two info are read at same run 1 and 2 what I have here 4 runs

Result

how to solve? I want both to be displayed at run 1 and 2 on top of each other with different colors of course.
thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:47:03+00:00Added an answer on June 5, 2026 at 9:47 pm

    If d and f are defined as

    f= [1.4000,0.8000];
    d= [8.0000,8.2000];
    

    and you do this

    bar([d', f'], 1.5);   %Where 1.5 is the width of the bars.
    

    You will get them on top of each other.
    The difference being that [d, f] is now a 2x2 matrix instead of a 1x4 row vector.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an input box which I want to handle two types of information,
I have two domain classes (getter setter of two tables): Contact Information and Address
I have two tables Plants and Information. For every plant there are many information,
i have two tables i am trying to get information from. login table -
I have two tables: a schedule table that contains information about how an employee
I have two websites that post news information. I just got a request to
I have two spreadsheets that each give information about a bunch of applications running
i have two tables one is called addons and holds information about different addons,
I have two lists: ask[] timeStamp[] I need to add the information in these
I have two tables (let's call them TradingWindows and VolumeData). Each row of TradingWindows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.