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 visualizaciones (últimos 30 días)
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 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 6 de Oct. de 2018
I have answered the question what I have understood, now you can modify the code as per your requirements

Iniciar sesión para comentar.

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 6 de Oct. de 2018
Editada: KALYAN ACHARJYA el 6 de Oct. de 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');

Más respuestas (0)

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by