piecewise function only plotting half?

조회 수: 7 (최근 30일)
Raphael Hatami
Raphael Hatami 2019년 8월 29일
댓글: Raphael Hatami 2019년 8월 31일
Hello, I am very new to matlab and am trying to graph a function of mutiple piecewise conditions. However, it only seems to be graphing up to x=5 (I need it tot graph to x=10). I've tinkered with it, and it seems to only be count the a= piecewise, none of the others. Can anybody see why that is? thank you
  댓글 수: 4
Walter Roberson
Walter Roberson 2019년 8월 30일
fplot(u, [min(x), max(x)])
Raphael Hatami
Raphael Hatami 2019년 8월 31일
thanks Walter, this worked!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by