How to plot below function f

1 visualización (últimos 30 días)
HEMANT K NASHINE
HEMANT K NASHINE el 15 de Ag. de 2019
Comentada: Star Strider el 15 de Ag. de 2019

Respuesta aceptada

Star Strider
Star Strider el 15 de Ag. de 2019
This is how I would do it:
f = @(x) (x/4).*((x > 0) & (x < 1)) + (x/3).*(x >= 1);
t = linspace(-5, 5);
figure
plot(t, f(t))
grid
  2 comentarios
HEMANT K NASHINE
HEMANT K NASHINE el 15 de Ag. de 2019
Thanks
Star Strider
Star Strider el 15 de Ag. de 2019
As always, my pleasure.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by