error using plot()
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Krishnendu Mukherjee
il 2 Feb 2012
Risposto: Massa Tolba
il 18 Feb 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 Commenti
Risposta accettata
Wayne King
il 2 Feb 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 Commenti
Walter Roberson
il 2 Feb 2012
No, there is no download or toolbox that will add that property to MATLAB 6.5
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Downloads in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
