error using plot()
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Wayne King
2012-2-2
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 个评论
Walter Roberson
2012-2-2
No, there is no download or toolbox that will add that property to MATLAB 6.5
更多回答(1 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!