What´s Continue entering statement.?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, when I do the code:
variable=load('dispersos.mat');
lonlims=[-120,-85];
latlims=[12,30];
lon=variable(:,1);
lat=variable(:,1);
temp=variable(:,1);
[z, lonz, latz]= bathygebco(lonlims, latlims);
ixpos = (z>0);
z(ixpos) = nan;
X=linspace(-120,-85,20);
Y=linspace(12,30,20);
colormap jet
set(gcf,'Position',[60,10,768, 700])%Posicion
%Temp=gridfit(lon,lat,temp,X,Y'); %Interpolacion temperatura
%val=griddata(lon(ix), lat(ix),temp(ix),X,Y','natural')
if ~isempty(ix)
val=gridfit(lon(ix), lat(ix),temp(ix),X,Y')
subaxis(2,1,1)
hold on
pcolor(X,Y,Temp)
shading interp %Mejora los pixeles
colorbar
caxis([16,28])
[C,h] = contour(lonz, latz, z, [-200], 'color', [0 0 0]);
clabel(C,h,'Color', [0 0 0], 'Rotation', -45 , 'LabelSpacing', 250, 'FontSize', 3)
shading flat
gshhslandmask([-120,-85],[12,30],[.68,.92,1],'f')
title('Temp')
I don't know why matlab freezes. What I want this code to do is a SST interpolation with the bathymetry isolines.. Thanks!
0 Commenti
Risposte (1)
Azzi Abdelmalek
il 12 Giu 2015
Modificato: Azzi Abdelmalek
il 12 Giu 2015
You missed end at the end of your if statement
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!