help with plotting matrix
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I Have to plot my K_tilde_linear matrix that i created where the x values start at 1 and go to 15. The Y values are supposed to be the K_tilde matrix. When i simply type plot(K_tilde_linear) i get my desired graph except it is not a smooth linear curve, it has a bunch of lines going vertically. Can someone help me with this please. Attached is a picture of my current graph as well as my code. Thank you
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/285378/image.png)
0 commentaires
Réponse acceptée
David Hill
le 17 Avr 2020
Not sure if this is what you want or not. Looks like the only values in the matrix are on the diagonal.
plot(1:14,diag(K_tilde_linear));
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots 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!