if x=[0:0.2:2]; and y=[-0.4:0.1:0.2]; and the equation of y=x/(x+r)-1/(1+r) and r is non linear it is many of curves and the values of r is r=0.1, 1, 10, 100 how can i plot it in matlab please help me i am trying many methods but still has a problem

2 Ansichten (letzte 30 Tage)
if x=[0:0.2:2]; and y=[-0.4:0.1:0.2]; and the equation of y=x/(x+r)-1/(1+r) and r is non linear it is many of curves and the values of r is r=0.1, 1, 10, 100 how can i plot it in matlab
  6 Kommentare
KALYAN ACHARJYA
KALYAN ACHARJYA am 6 Okt. 2018
I have answered the question what I have understood, now you can modify the code as per your requirements

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 6 Okt. 2018
Bearbeitet: KALYAN ACHARJYA am 6 Okt. 2018
Are you looking for this one? Considering y is finding function wrt x and r.
x=0:0.2:2;
%y=-0.4:0.1:0.2;
r=[0.1 1 10 100];
for i=1:4
y=x./(x+r(i))-1/(1+r(i));
plot(x,y);
hold on;
end
legend('r=0.01','r=1','r=10','r=100');

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by