surface Z contain more than one row or column

1 次查看(过去 30 天)
x(1)=0.0001:0.1:0.01;
x(2)=0.003:0.1:0.08;
[X Y]=meshgrid(x(1),x(2));
rho_ss=8000;
rho_cop=8960;
D_io=0.0014;D_oo=0.0075;
thick_i=.0014-x(1);
thick_o=0.0075-x(2);
f=(((rho_ss*pi*thick_i*x(1)*0.1149)+(rho_cop*pi*thick_o*x(2)*0.1149)));
%fsurf(f,[0.0001 0.01 0.003 0.08]);
surfc(X,Y,f)
i want to plot these in 3-d getting some error.can anybody resolve this

回答(1 个)

madhan ravi
madhan ravi 2019-8-21
x1=0.0001:.001:.01; % you would have to decide the points yourself
x2=0.003:0.001:0.08;
[X,Y]=meshgrid(x1,x2);
rho_ss=8000;
rho_cop=8960;
D_io=0.0014;D_oo=0.0075;
thick_i=.0014-X;
thick_o=0.0075-Y;
f=(((pi*rho_ss.*thick_i.*X*0.1149)+(rho_cop.*pi*thick_o.*Y*0.1149)));
surfc(X,Y,f)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by