plot multi graphs with 2 y axis in 1 graph
Posted
by lytheone
on Stack Overflow
See other posts from Stack Overflow
or by lytheone
Published on 2010-03-21T16:17:49Z
Indexed on
2010/03/21
16:21 UTC
Read the original article
Hit count: 248
Hello,
Currently I have a a text file with data at the first row is formatted as follow: time;wave height 1;wave height 2;....... I have column until wave height 19 and rows total 4000 rows.
Data in the first column is time in second. From 2nd column onwards, it is wave height elevation which is in meter.
I would like to plot the follow: ![alt text][1]
on the x axis is time. the left hand side is wave height in m and on the right hand side is the distance between each measurment in a model.
inside the graph there are 4 plots, each plot is repersent waveight 1, wave height 2etc at a defined distance related to the right hand side y asix.
How would you code this in matlab?
I am a begineer, please if you could, it will be very useful to give a bit more explain in your answer!
Thank you!!!!!!!!!!
© Stack Overflow or respective owner