Plot a smooth graph from excel data
12 views (last 30 days)
Show older comments
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?
0 Comments
Answers (3)
Star Strider
on 7 Jan 2017
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.
0 Comments
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!