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

3 Ansichten (letzte 30 Tage)
>> 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.

Akzeptierte Antwort

Steven Lord
Steven Lord am 31 Okt. 2016
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.

Weitere Antworten (1)

John D'Errico
John D'Errico am 31 Okt. 2016
You need to use
hold on
between the two plots.

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by