I have this data Z = rand(9,5);
I can group my data on the Y axis using the following code:
Y = [1 2 3 5 6 7 9 10 11];
bar3(Y,Z)
Now I want to group my data on the X axis , how can I do this? Thanks a lot!

Antworten (1)

Image Analyst
Image Analyst am 19 Okt. 2013

0 Stimmen

Did you try bar3(Z, Y)?

3 Kommentare

may
may am 19 Okt. 2013
I just tried it and got this error:
Error using bar3 (line 39) X must be a vector.
Image Analyst
Image Analyst am 19 Okt. 2013
Well what is Z - you never told us. Do you have a simple script you can attach?
may
may am 20 Okt. 2013
for example
Z = rand(9,5);

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Graphics finden Sie in Hilfe-Center und File Exchange

Tags

Noch keine Tags eingegeben.

Gefragt:

may
am 18 Okt. 2013

Kommentiert:

may
am 20 Okt. 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by