make netcdf vectors same length for plot
1 view (last 30 days)
I have 4 variables
T, Y, X, SST
SST is 3 dimensions, others are one dimension.
I get error code vectors must be same length
sst is 360x180x473
t is 473x1
im new to matlab so still learning any help will be appreciated thank you
Star Strider on 26 Apr 2021
‘But i'm trying to plot SST over time at the lat and lon specified.’
I assume those are the ‘x’ and ‘y’ values. If so, choose one in each, and plot it with respect to ‘t’.
SST = rand(360, 180, 473);
t = linspace(1, 24, 473).';
SSTplot = squeeze(SST(200,100,:));
I am not aware of any other way to do the plot.