Help me about plot y = 1/x

5 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

更多回答(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 CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by