Plotting graph with given points
127 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Odien
el 5 de Ag. de 2015
Comentada: DGM
el 6 de Mzo. de 2024
basically we always plot graph of certain function such as x = 0 : 1 : 10 y = sinx; plot(x,y,'-r^')
lets say given x = 2 y = 15 x = 3 y = 8 x = 8 y = 30 the point is random, how to plot this graph?
0 comentarios
Respuesta aceptada
Danny Alvarez
el 5 de Ag. de 2015
x=[2,3,8]; y=[15,8,30]; plot(x.y)
or
plot(x,y,'o') for dots
4 comentarios
Jorge Luis Dominguez Martinez
el 13 de Jun. de 2022
Movida: DGM
el 6 de Mzo. de 2024
From the Graph window, you can go to File -> Save as
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1030255/image.jpeg)
or click on Save Figure
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1030260/image.jpeg)
and then select JPEG image (*jpg) as a type
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1030265/image.jpeg)
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!