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 Comments

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

Sign in to comment.

Answers (0)

Categories

Asked:

on 24 Nov 2017

Commented:

on 25 Nov 2017

Community Treasure Hunt

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

Start Hunting!