Plotting stations from different dates

Hi, I need to plot this salinity (S) data so that station 1 shows 3 dates on the graph and then a new subplot shows station 2 with the same dates.

2 个评论

And what have you tried thus far? Have a read here and here. It will greatly improve your chances of getting an answer.
Sorry so far I have managed to plot each station in the code below. But as soon as I put in subplots only one line of data shows up.
[num,txt,raw] = xlsread('Station 4.csv'); % num = flipud(num) ; depth = num(:,1) ; s1 = num(:,2) ; s2 = num(:,3) ; s3 = num(:,4) ; % plot hold on plot(s1,depth,'r') ; plot(s2,depth,'b') ; plot(s3,depth,'m') ; set(gca,'YDir','reverse'); legend([{'14am'};{'17am'}; {'21am'}] ) hold on

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by