Help me about plot y = 1/x

5 ビュー (過去 30 日間)
Nguyen Trong Nhan
Nguyen Trong Nhan 2013 年 12 月 21 日
回答済み: Shreedhar Sarda 2022 年 1 月 15 日
I want to plot the graph y = 1/x. I do in command window :
syms x y
x=0,0.1,1;
y=1/x;
plot(x,y)
I appear the error like this:
??? Error using ==> mldivide Matrix dimensions must agree
could you please help me repair this error to plot the graph y = 1/x. thanks

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 12 月 21 日
x=0:0.1:1;
y=1./x;
plot(x,y)
  5 件のコメント
Sandor Fogassy
Sandor Fogassy 2017 年 1 月 11 日
Thank you.
Giuseppe Degan Di Dieco
Giuseppe Degan Di Dieco 2021 年 10 月 9 日
Thank you mate.

サインインしてコメントする。

その他の回答 (1 件)

Shreedhar Sarda
Shreedhar Sarda 2022 年 1 月 15 日
Plot the function y=1/x in domain -2 to 2. At what point this function is not continuous?

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by