Gantt Chart on Matlab

60 views (last 30 days)
Mark S
Mark S on 1 Apr 2020
Commented: Ameer Hamza on 1 Apr 2020
Hello,
i have this Matrix:
1 0 11
2 11 24
3 24 40
4 40 60
5 60 80
My actual plot look like this
How kan i delete the blue bars?
How can i make a Gannt Chart, from my Data Matrix?

Accepted Answer

Ameer Hamza
Ameer Hamza on 1 Apr 2020
This show how to make Gannt Chart from your data
A = [ 1 0 11
2 11 24
3 24 40
4 40 60
5 60 80];
h = barh(A(:,2:3), 'stacked');
h(1).Visible = 'off';
  2 Comments
Ameer Hamza
Ameer Hamza on 1 Apr 2020
Glad to be of help.

Sign in to comment.

More Answers (1)

darova
darova on 1 Apr 2020
Use only 3d column
A = [ 1 0 11
2 11 24
3 24 40
4 40 60
5 60 80];
bar(A(:,3))
  2 Comments
Ameer Hamza
Ameer Hamza on 1 Apr 2020
In MATLAB, you cannot delete them. You can just make then invisible. See my answer to see how to do that.

Sign in to comment.

Tags

Products

Community Treasure Hunt

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

Start Hunting!