surface Z contain more than one row or column

1 回表示 (過去 30 日間)
RAHUL KUMAR
RAHUL KUMAR 2019 年 8 月 21 日
コメント済み: RAHUL KUMAR 2019 年 8 月 21 日
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 件のコメント
darova
darova 2019 年 8 月 21 日
What is wrong with it?

サインインしてコメントする。

回答 (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)
  1 件のコメント
RAHUL KUMAR
RAHUL KUMAR 2019 年 8 月 21 日
yes i decide myself

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by