What´s Continue entering statement.?

4 次查看(过去 30 天)
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!

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2015-6-12
编辑:Azzi Abdelmalek 2015-6-12
You missed end at the end of your if statement
  1 个评论
Lilia A.L.
Lilia A.L. 2015-6-13
I realized after writing the question, thanks!.. Tryed it, but still the same

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by