surface Z contain more than one row or column
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
Respuestas (1)
madhan ravi
el 21 de Ag. de 2019
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)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!