代码搜索结果

找到约 12,326 项符合 M 的代码

l14.m

load xyz xi=0:50:5600; yi=0:50:4800; zi=interp2(x,y,z,xi,yi','nearest'); subplot(1,3,1),contour(xi,yi,zi,10,'r'); hold on plot(2000,2800,'c.',0,800,'r.',4000,2000,'r.',2000,4000,'r.','MarkerSi

l12.m

load xyz meshz(x,y,z),rotate3d xlabel('X'),ylabel('Y'),zlabel('Z') hold on; plot3(2000,2800,1100,'c.',0,800,650,'r.',4000,2000,950,'r.',2000,4000,1320,'r.','MarkerSize',30);

hd2.m

clear; x=[129 140 103.5 88 185.5 195 105.5 157.5 107.5 77 81 162 162 117.5]; y=[7.5 141.5 23 147 22.5 137.5 85.5 -6.5 -81 3 56.5 -66.5 84 -33.5]; z=[-4 -8 -6 -8 -6 -8 -8 -9 -9 -8 -8 -9 -4 -9];

plane.m

x0=[0 3 5 7 9 11 12 13 14 15 ]; y0=[0 1.2 1.7 2.0 2.1 2.0 1.8 1.2 1.0 1.6 ]; x=0:0.1:15; y1=lagr1(x0,y0,x); y2=interp1(x0,y0,x); y3=interp1(x0,y0,x,'spline'); subplot(3,1,1) plot(x0,y0,'k+',x,y

xch14.m

x=linspace(-6,6,100); y=1./(x.^2+1); x1=linspace(-6,6,41); y1=1./(x1.^2+1); plot(x,y,x1,y1,x1,y1,'o','LineWidth',1.5), gtext('n=40'),

xch12.m

x=linspace(-6,6,100); y=1./(x.^2+1); x1=linspace(-6,6,11); y1=1./(x1.^2+1); plot(x,y,x1,y1,x1,y1,'o','LineWidth',1.5), gtext('n=10'),

temp.m

hours=1:12; temps=[5 8 9 15 25 29 31 30 22 25 27 24]; h=1:0.1:12; t=interp1(hours,temps,h,'spline'); plot(hours,temps,'+',h,t,hours,temps,'r:') xlabel('Hour'),ylabel('Degrees Celsius')

ych.m

x0=linspace(-5,5,11); y0=1./(1+x0.^2); x=linspace(-5,5,100); y=interp1(x0,y0,x,'spline'); x1=linspace(-5,5,100); y1=1./(1+x1.^2); plot(x1,y1,'k',x0,y0,'+',x,y,'r');

wendu.m

x=1:5; y=1:3; temps=[82 81 80 82 84;79 63 61 65 81;84 84 82 85 86]; mesh(x,y,temps) pause xi=1:0.2:5; yi=1:0.2:3; zi=interp2(x,y,temps,xi',yi,'cubic'); figure(2) mesh(xi,yi,zi)