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

4 visualizzazioni (ultimi 30 giorni)
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 Commenti
KALYAN ACHARJYA
KALYAN ACHARJYA il 6 Ott 2018
I have answered the question what I have understood, now you can modify the code as per your requirements

Accedi per commentare.

Risposta accettata

KALYAN ACHARJYA
KALYAN ACHARJYA il 6 Ott 2018
Modificato: KALYAN ACHARJYA il 6 Ott 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');

Più risposte (0)

Categorie

Scopri di più su Get Started with Curve Fitting Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by