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!
댓글 수: 0
답변 (1개)
Azzi Abdelmalek
2015년 6월 12일
편집: Azzi Abdelmalek
2015년 6월 12일
You missed end at the end of your if statement
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!