Plotting graph with given points
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Danny Alvarez
am 5 Aug. 2015
x=[2,3,8]; y=[15,8,30]; plot(x.y)
or
plot(x,y,'o') for dots
4 Kommentare
Jorge Luis Dominguez Martinez
am 13 Jun. 2022
Verschoben: DGM
am 6 Mär. 2024
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
.

Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Line Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!