how to plot the graph for the following data with respect to x axis and y axis.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
X axis data (2,4,6,8,10) y axis data(1.35,4.16,4.12,4.83,4.35)
could anyone help me to do this.
0 Kommentare
Akzeptierte Antwort
YT
am 5 Mär. 2018
You can plot it easily like so:
x_data = [2,4,6,8,10];
y_data = [1.35,4.16,4.12,4.83,4.35];
plot(x_data,y_data);
You can check the options for plot by typing help plot in the command window
2 Kommentare
Rik
am 5 Mär. 2018
To clarify: the x-tick have no real connection with the data you plotted. If you had plotted x_data = [2.5,4.5,6.5,8.5,10.5];, you would still see the same integers as the x-tick labels.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!