Plot a smooth graph from excel data
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (3)
Star Strider
el 7 de En. de 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 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!