![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281253/image.png)
Gantt Chart on Matlab
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281246/image.jpeg)
How kan i delete the blue bars?
How can i make a Gannt Chart, from my Data Matrix?
0 commentaires
Réponse acceptée
Ameer Hamza
le 1 Avr 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';
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281253/image.png)
2 commentaires
Plus de réponses (3)
darova
le 1 Avr 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 commentaires
Ameer Hamza
le 1 Avr 2020
In MATLAB, you cannot delete them. You can just make then invisible. See my answer to see how to do that.
Alexis Wang
le 30 Août 2022
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!
0 commentaires
Muhammad Raza
le 23 Sep 2023
Modifié(e) : Muhammad Raza
le 23 Sep 2023
Here is a complete article along with the MATLAB Gantt Chart Code and video explanation as well.
0 commentaires
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!