how to plot graph from text data as shown in the image
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Akzeptierte Antwort
KALYAN ACHARJYA
am 6 Mär. 2021
Bearbeitet: KALYAN ACHARJYA
am 6 Mär. 2021
Try this way in MATLAB edit window
%Load the file
A=readmatrix('file.txt');
Get the x and y values
x=A(:,1);
x=A(:,2);
Plot the x and y data
plot(x,y);
Before plotting make sure the lengths of x and y are the same length, if not the same length, then check the data arrangement format within the text file.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations 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!