How do i plot the x-y coordinates on the same graph for all the 500 sheets of excel file?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello, i am quite new to matlab. I have an excel file which contains 500 sheets, with each of then containing coordinates (column a represent x-axis and b represents y-axis). I wanted to plot a x-y coordinate graph containing the coordinates from each sheet (all plotted on the same graph). How do i do this?
0 Kommentare
Antworten (1)
Jan
am 9 Mai 2018
Bearbeitet: Jan
am 9 Mai 2018
Create an axes and enable that existing objects are not overwritten. Then import the data in a loop and draw them:
ax = axes('NextPlot', 'add'); % Same as: "hold all"
for iSheet = 1:500
Data = xlsread(FileName, iSheet, 'A:B');
plot(Data(:, 1), Data(:, 2));
end
0 Kommentare
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!