Gantt Chart on Matlab

조회 수: 31 (최근 30일)
Mark S
Mark S 2020년 4월 1일
편집: Muhammad Raza 2023년 9월 23일
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?

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 4월 1일
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
Mark S
Mark S 2020년 4월 1일
Ok it works. Thank you.
Ameer Hamza
Ameer Hamza 2020년 4월 1일
Glad to be of help.

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

darova
darova 2020년 4월 1일
Use only 3d column
A = [ 1 0 11
2 11 24
3 24 40
4 40 60
5 60 80];
bar(A(:,3))
  댓글 수: 2
Mark S
Mark S 2020년 4월 1일
편집: Mark S 2020년 4월 1일
It should look like something like this:
I wanna delete my blue bars(in my first picuture). How can i do that?
Ameer Hamza
Ameer Hamza 2020년 4월 1일
In MATLAB, you cannot delete them. You can just make then invisible. See my answer to see how to do that.

댓글을 달려면 로그인하십시오.


Alexis Wang
Alexis Wang 2022년 8월 30일
If anyone has trouble making a Gantt chart again, I just published a custom Gantt chart for anyone to use and download on File Exchange here: https://www.mathworks.com/matlabcentral/fileexchange/116970-gantt-chart?s_tid=srchtitle. If you have any questions or feedback, feel free to let me know!

Muhammad Raza
Muhammad Raza 2023년 9월 23일
편집: Muhammad Raza 2023년 9월 23일
Here is a complete article along with the MATLAB Gantt Chart Code and video explanation as well.

카테고리

Help CenterFile Exchange에서 Equivalent Baseband Simulation에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by