Filter löschen
Filter löschen

problem with xtick in plotyy

1 Ansicht (letzte 30 Tage)
Arshad
Arshad am 6 Sep. 2013
Hello,
I have
x1 = 1 to 60 min
x2 = 1 to 30 min
Y1 = values
Y2 = values
Note = all are having same vectors
if i use plotyy command i.e. plotyy(x1,y1,x2,y2) it gives me two xtick and yaxis label that looks weird. Please give me the solution to this problem. Thanks
  3 Kommentare
dpb
dpb am 6 Sep. 2013
Well,
plotyy(1:60,rand(1,60),1:30,rand(1,30))
looks pretty much like I'd expect here...insufficient data to know what "weird" you got or why.
Are the time vectors datenum values, perchance, w/o having used datetick()?
Jan
Jan am 8 Sep. 2013
Please do not paraphrase your intention, but the real Matlab code. It is not clear, what "x1 = 1 to 60 min" exactly means.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Two y-axis 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