Clear Filters
Clear Filters

3D multiple bars plot

1 view (last 30 days)
Muhammad Usama
Muhammad Usama on 23 Jan 2019
Answered: Luna on 23 Jan 2019
Capture.PNG
These bars are plotes for a perameter say a = 0, and I want to drawa other bars with a = 1. is there any way to add similar bars in the third direction behind these bars?

Answers (1)

Luna
Luna on 23 Jan 2019
Use bar3 function. Read more about: bar3
A = randi(10,5,3);
figure;
hBar = bar3(A,'grouped');

Community Treasure Hunt

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

Start Hunting!