Demo entry 6682758

matlab

   

Submitted by anonymous on Dec 10, 2017 at 16:39
Language: Matlab. Code size: 521 Bytes.

function main()
load test1.txt  %ÔØÈëÊý¾ÝÎļþ
data = test1;  %´Ë´¦ÐèÒªÐÞ¸Äsdy2ΪÏëÒªµÄÎļþÃû

x_data = data(:,1); y_data = data(:,2); u_data = data(:,3);

[xx,yy] = meshgrid(50:1:400, 50:1:400);
uu = griddata(x_data,y_data,u_data,xx,yy,'v4');
figure(1)
mesh(xx,yy,uu);hold on
plot3(x_data,y_data,u_data,'*k')
hCbar = colorbar('fontsize',10);  
set(hCbar,'ZDir','normal')
title('µç³¡·Ö²¼Çé¿ö')
xlabel('X×ø±ê');ylabel('Y×ø±ê');zlabel('µçѹֵ')

figure(2)
S = 0:0.5:8;
contour(xx,yy,uu,S);
title('µÈÊÆÏß')

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).