Plotting graph with given points
386 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Danny Alvarez
2015-8-5
x=[2,3,8]; y=[15,8,30]; plot(x.y)
or
plot(x,y,'o') for dots
4 个评论
Jorge Luis Dominguez Martinez
2022-6-13
移动:DGM
2024-3-6
From the Graph window, you can go to File -> Save as
or click on Save Figure
and then select JPEG image (*jpg) as a type .
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!