please i need urgent solution to this. am trying to differentiate two plots on same graph

조회 수: 3 (최근 30일)
>> plot(plist,ref(fcount,'x--':),plist,ref(fcount+1,'o:'))
??? plot(plist,ref(fcount,'x--':),plist,ref(fcount+1,'o:'))
|
Error: Unbalanced or unexpected parenthesis or bracket.

채택된 답변

Steven Lord
Steven Lord 2016년 10월 31일
This:
plot(plist,ref(fcount,'x--':),plist,ref(fcount+1,'o:'))
is not the correct way to call plot. I think you want is something like:
plot(plist,ref(fcount,:),'x--',plist,ref(fcount+1,:),'o:')
If that's not it, explain with words (not code) what you're trying to plot and someone may be able to offer some guidance.

추가 답변 (1개)

John D'Errico
John D'Errico 2016년 10월 31일
You need to use
hold on
between the two plots.

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by