Help me about plot y = 1/x

81 visualizaciones (últimos 30 días)
Nguyen Trong Nhan
Nguyen Trong Nhan el 21 de Dic. de 2013
Respondida: Shreedhar Sarda el 15 de En. de 2022
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

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 21 de Dic. de 2013
x=0:0.1:1;
y=1./x;
plot(x,y)
  5 comentarios
Sandor Fogassy
Sandor Fogassy el 11 de En. de 2017
Thank you.
Giuseppe Degan Di Dieco
Giuseppe Degan Di Dieco el 9 de Oct. de 2021
Thank you mate.

Iniciar sesión para comentar.

Más respuestas (1)

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

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by