채택된 답변

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 Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2019년 8월 15일

댓글:

2019년 8월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by