What´s Continue entering statement.?

조회 수: 4 (최근 30일)
Lilia A.L.
Lilia A.L. 2015년 6월 12일
편집: Azzi Abdelmalek 2015년 6월 13일
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