error using plot()
조회 수: 2 (최근 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!