How can I modify function assignment of plot?

Hi!
So when I use the plot and the assignment of x is -10 to 15 and y is -10 to 15 but I would like to be y -10 to 10 twos and x -10 to 15 assigned with fiver.
How can I do this?
ui: Sorry my english :D

 採用された回答

madhan ravi
madhan ravi 2018 年 11 月 19 日
編集済み: madhan ravi 2018 年 11 月 19 日

0 投票

Use linspace as below:
x = linspace(-10,15,1000); % divided into 1000 parts
y = linspace(-10,10,1000); % divided into 1000 parts
plot(x,y)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2018 年 11 月 19 日

編集済み:

2018 年 11 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by