how to Expand the plot line in a function

I have a struggle plotting a function in Matlab because the plotline is not complete and it's cut after certain value and because of that I cannot preview well my function. Is there a way to expand the plot line so I can see the complete function?

 採用された回答

Chris
Chris 2021 年 11 月 3 日
編集済み: Chris 2021 年 11 月 4 日

0 投票

The default x interval for fplot is [-5 5]. You can change it with the xinterval argument:
fplot(y,[0,130])
You don't need an x argument unless x is a function (like a parametric equation)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

製品

質問済み:

2021 年 11 月 3 日

編集済み:

2021 年 11 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by