I am very new to Matlab and was wondering how to graph the function y= (x-1)/(x+1)

5 ビュー (過去 30 日間)
Shai
Shai 2017 年 7 月 30 日
回答済み: MSP 2017 年 7 月 30 日
I have written the code: x= -5:5; y= (x - 1)/(x + 1); plot(x,y)
It does not come up with any errors but when I select Run my graph does not show

採用された回答

MSP
MSP 2017 年 7 月 30 日
Just include a . before division
x= -5:5
y= (x - 1)./(x + 1)
plot(x,y)

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by