採用された回答

Star Strider
Star Strider 2019 年 8 月 15 日

0 投票

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 件のコメント

HEMANT K NASHINE
HEMANT K NASHINE 2019 年 8 月 15 日
Thanks
Star Strider
Star Strider 2019 年 8 月 15 日
As always, my pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by