I want to plot the equation for x=1-10. However, the plot should just include the out put values less or equale to one and if the value more than one just make one.y>=1
y=(2.*x)./(x+5)
% plot(x,y,'k'),

 Respuesta aceptada

dpb
dpb el 18 de Jun. de 2018
fnF=@(x) min(1,2*x./(x+5));
x=1:10;
plot(x,fnF(x))

1 comentario

Najiya Omar
Najiya Omar el 18 de Jun. de 2018
Editada: Najiya Omar el 18 de Jun. de 2018
Thank you very much. works perfectly

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Sparse Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Jun. de 2018

Editada:

el 18 de Jun. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by