Plotting an equation at different X

1 回表示 (過去 30 日間)
Yalda Saffary
Yalda Saffary 2016 年 2 月 19 日
回答済み: jgg 2016 年 2 月 19 日
Hi I want to plot an equation which depends on x. For example I what to plot y=1/(1-x) where value of x can be between 0 to 20. How can I write this code?

採用された回答

jgg
jgg 2016 年 2 月 19 日
You should look up the plot function:
incr = 0.1;
x = [1:incr:20];
y = (1-x).^-1
plot(x,y)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by