surface Z contain more than one row or column
1 view (last 30 days)
Show older comments
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
Answers (1)
madhan ravi
on 21 Aug 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)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!