error using plot()
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Krishnendu Mukherjee
le 2 Fév 2012
Réponse apportée : Massa Tolba
le 18 Fév 2021
h_MeanCostPlot=plot(MeanCost,'k:','LineWidth',1.5,'YDataSource','MeanCost');
im getting error while using this command in m-file.
is the syntax correct?
2 commentaires
Réponse acceptée
Wayne King
le 2 Fév 2012
Not sure why that is causing you a problem, (maybe a version problem), but try
h_MeanCostPlot=plot(MeanCost,'k:','LineWidth',1.5);
You should not need 'YDataSource' here unless you want to refreshdata()?
Does this work for you?
x = randn(100,1);
h = plot(x,'k:');
set(h,'YDataSource','x');
What version of MATLAB are you using?
11 commentaires
Walter Roberson
le 2 Fév 2012
No, there is no download or toolbox that will add that property to MATLAB 6.5
Plus de réponses (1)
Massa Tolba
le 18 Fév 2021
Error in Q1 (line 9)
plot(i,A)
What should i do with this error
0 commentaires
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing 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!