Hi everyone! How do i want to plot graph the graph for this values?

1 visualización (últimos 30 días)
>> A = [1 1 ; -1 3 ]
A = 1 1
-1 3
>> B = [ 7 ; 1 ]
B =7
1
>> AB = [ A B ]
AB = 1 1 7
-1 3 1
>> rref(AB)
ans =1 0 5
0 1 2
  2 comentarios
Walter Roberson
Walter Roberson el 1 de Dic. de 2020
?
What would you plot? What are your X coordinates? What are you Y coordinates? Do you want a line plot? A point plot? A surface?
Levi
Levi el 1 de Dic. de 2020
oh I am sorry . My x= 5 and y = 2.. I have try using plot(x,y) but nothing appear. A graph without line emerge.

Iniciar sesión para comentar.

Respuesta aceptada

Stephan
Stephan el 1 de Dic. de 2020
Editada: Stephan el 1 de Dic. de 2020
To plot single points use scatter:
x = 5
y = 2
scatter(x,y)
plot can not visualize single points, but vectors:
x = 5:10
y = 2:2:12
plot(x,y)
  2 comentarios
Levi
Levi el 1 de Dic. de 2020
Thanks a lot sir. But can you kindly explain what does number after x = 5 (which is 10) respresent? Same goes to y = :2 (which is 2 : 12 ) that have 2 digits after it?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by