Plot a smooth graph from excel data
Ältere Kommentare anzeigen
Hi,
I have to import three columns from excel, each column having over 50,000 data points. And I have to plot a three-dimensional plot. Can someone please help me by guiding me on which commands to use so that I can plot a smooth curve (like the attached diagram) from the excel data?
Antworten (3)
Adam
am 6 Jan. 2017
doc xlsread
doc surf
Star Strider
am 7 Jan. 2017
0 Stimmen
If you have three columns and the independent variables (coordinates) are not gridded, you cannot plot them in a surf or mesh plot without interpolating them to a grid first. (see the documentation for the scatteredInterpolant class for details.)
One easy way to see if they are gridded is to use stem3 to plot them. The advantage of stem3 over the others (specifically scatter3 or plot3) is that stem3 shows you where the independent variable coordinates are located for each dependent variable. If they look gridded, you can then use the reshape function to produce the gridded coordinates that the surf and mesh functions require.
sannatlegend
am 8 Jan. 2017
Bearbeitet: sannatlegend
am 8 Jan. 2017
0 Stimmen
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!