matlab中?Subscripted assignment dimension mismatch.程序在这里,figure[x,y,z]=meshgrid(linspace(0,100)); %做出网格meshgridfor i=1:2p(i,:)=0.00513.*(-0.00000244*((x-20-9.8.*(i-1)).^2+(y-25).^2).^3+0.00104*((x-20-9.8.*(i-1)).^2+(y-25).^2).^2-0.

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/20 13:35:46
matlab中?Subscripted assignment dimension mismatch.程序在这里,figure[x,y,z]=meshgrid(linspace(0,100)); %做出网格meshgridfor i=1:2p(i,:)=0.00513.*(-0.00000244*((x-20-9.8.*(i-1)).^2+(y-25).^2).^3+0.00104*((x-20-9.8.*(i-1)).^2+(y-25).^2).^2-0.
xUn@TGƎI>eU$'qž@XAdl`v/0 EđP%lٞ{ՙ;WݚaSO?sSr#öt&"96OЍ6 b8BFwZ6<ԤLd) tl΃Q4yq-HʢK!LP6CrMQ]N—qMDD9'pIje~x=bd5iyJ?΋ CY(TRq|#­%2"2V$xX+vzw׊#e!ۥSE>w43?@CRCWld6x?OASh8YK//_/ѨO !u|.这>Q4ˌ Ķpt6GmF]0>~;wqeVsn T5/\Vu͝U.ʹ+mWȷ|K*\UXL]Ʒ X`/?,1XpadలQ\VS[ X.ZaE?7IOBGsZ(~

matlab中?Subscripted assignment dimension mismatch.程序在这里,figure[x,y,z]=meshgrid(linspace(0,100)); %做出网格meshgridfor i=1:2p(i,:)=0.00513.*(-0.00000244*((x-20-9.8.*(i-1)).^2+(y-25).^2).^3+0.00104*((x-20-9.8.*(i-1)).^2+(y-25).^2).^2-0.
matlab中?Subscripted assignment dimension mismatch.
程序在这里,
figure
[x,y,z]=meshgrid(linspace(0,100)); %做出网格meshgrid
for i=1:2
p(i,:)=0.00513.*(-0.00000244*((x-20-9.8.*(i-1)).^2+(y-25).^2).^3+0.00104*((x-20-9.8.*(i-1)).^2+(y-25).^2).^2-0.15059*((x-20-9.8.*(i-1)).^2+(y-25).^2)+9.4897).^3-0.206.*(-0.00000244*((x-20-9.8.*(i-1)).^2+(y-25).^2).^3+0.00104*((x-20-9.8.*(i-1)).^2+(y-25).^2).^2-0.15059*((x-20-9.8.*(i-1)).^2+(y-25).^2)+9.4897).^2+2.9.*(-0.00000244*((x-20-9.8.*(i-1)).^2+(y-25).^2).^3+0.00104*((x-20-9.8.*(i-1)).^2+(y-25).^2).^2-0.15059*((x-20-9.8.*(i-1)).^2+(y-25).^2)+9.4897)+0.376-z;
end
isosurface(x,y,z,p,0,x);
axis equal;
view(0,45); %视角的控制
colormap([1 0 0]); %绘图颜色红色
brighten(0.5); %增亮
camlight right; %光源位置
lighting phong; %光照模式
isosurface(x,y,z,p,0,x);换成isosurface(x,y,z,sum(p,1),0,

matlab中?Subscripted assignment dimension mismatch.程序在这里,figure[x,y,z]=meshgrid(linspace(0,100)); %做出网格meshgridfor i=1:2p(i,:)=0.00513.*(-0.00000244*((x-20-9.8.*(i-1)).^2+(y-25).^2).^3+0.00104*((x-20-9.8.*(i-1)).^2+(y-25).^2).^2-0.
clear
figure
[x,y,z]=meshgrid(linspace(0,100)); %做出网格meshgrid
for i=1:2
t1=-0.00000244*((x-20-9.8.*(i-1)).^2+(y-25).^2).^3;
t2=0.00104*((x-20-9.8.*(i-1)).^2+(y-25).^2).^2;
t3=0.15059*((x-20-9.8.*(i-1)).^2+(y-25).^2)+9.4897;
t4=-0.00000244*((x-20-9.8.*(i-1)).^2+(y-25).^2).^3;
t5=0.00104*((x-20-9.8.*(i-1)).^2+(y-25).^2).^2;
t6=0.15059*((x-20-9.8.*(i-1)).^2+(y-25).^2)+9.4897;
t7=-0.00000244*((x-20-9.8.*(i-1)).^2+(y-25).^2).^3;
t8=0.00104*((x-20-9.8.*(i-1)).^2+(y-25).^2).^2;
t9=0.15059*((x-20-9.8.*(i-1)).^2+(y-25).^2)+9.4897;
tmp=1;
p(:,:,:,1)=0.00513.*(t1+t2-t3).^3-0.206.*(t4+t5-t6).^2+2.9*(t7+t8 -t9)+0.376-z;
end
isosurface(x,y,z,sum(p,4),0,x); % isosurface(x,y,z,p,0,x);
axis equal;
view(0,45); %视角的控制
colormap([1 0 0]); %绘图颜色红色
brighten(0.5); %增亮
camlight right; %光源位置
lighting phong; %光照模式