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!