I want to plot below equation in matlab. Can anyone help me?

8 ビュー (過去 30 日間)
Goutam Behera
Goutam Behera 2018 年 9 月 19 日
回答済み: Surbhi Pillai 2018 年 9 月 26 日
Ro/(Ro^4-Ri^4)-3.928*10^3<=0;
((Ro^2+RoRi+Ri^2)/(Ro^4-Ri^4))-7.071*10^3<=0;
Ro<=0.2;
Ri<=0.2;
clear all
close all
rin=0.2;
rout=0.2;
plot([rin,rin],[0,1]);
xlabel('inner radius of tube');
ylabel('outer radius of tube');
hold on;
grid on;
plot([0,1],[rout,rout]);
hold on;
grid on;
[ro , ri] = meshgrid (0:0.001:0.199 , 0:0.01:0.2);
z1= (ro.*((ro.^4-ri.^4).^-1))-6.167*10^8;
z2= (ro.^2+ro.*ri+ri.^2).*((ro.^4-ri.^4).^-1)-7.071*10^3;
contour(ri,ro,z1,'r');
contour(ri,ro,z2,'r');
I am using the above code but i think its wrong. Can anyone help me?
  2 件のコメント
KSSV
KSSV 2018 年 9 月 19 日
Yes..the whole code is wrong......you need to learn syntaxes of MATLAB. What is the input? You have not give any variables.
Goutam Behera
Goutam Behera 2018 年 9 月 19 日
Variable are ro,ri. I want a contour plot for the relationship between z1, ro, ri and z2, ro, r1. ro, ri can lie between 0 to 0.2.

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

回答 (1 件)

Surbhi Pillai
Surbhi Pillai 2018 年 9 月 26 日
Hi,
Plotting inequality equations can be done by numerically evaluating the conditions for which the equations hold true and visualizing the true conditions in 3D using 'surf' function.
To understand how to numerically evaluate the conditions and visualize the equation you can refer to the below link which shares various ways to plot inequality regions.
I hope this helps.

カテゴリ

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

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by