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 件のコメント

Rik
Rik 2017 年 11 月 24 日
And what have you tried thus far? Have a read here and here. It will greatly improve your chances of getting an answer.
Amelia Newman
Amelia Newman 2017 年 11 月 25 日
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 ExchangeDates and Time についてさらに検索

質問済み:

2017 年 11 月 24 日

コメント済み:

2017 年 11 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by