Akzeptierte Antwort

Star Strider
Star Strider am 15 Aug. 2019

0 Stimmen

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 Kommentare

HEMANT K NASHINE
HEMANT K NASHINE am 15 Aug. 2019
Thanks
Star Strider
Star Strider am 15 Aug. 2019
As always, my pleasure.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by