How to draw a 3D plot from an excel data?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
student_md
el 22 de Feb. de 2021
Comentada: KSSV
el 23 de Feb. de 2021
How to draw a 3D plot from an excel data? Please click for downloading following Excel Data (or find attachment)
(maybe mesh 3d plot or surfc plot)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/527609/image.png)
(First column is x-values, first row is y-values.)
0 comentarios
Respuesta aceptada
KSSV
el 22 de Feb. de 2021
num = xlsread('test3.xlsx') ;
x = num(2:end,1) ;
y = num(1,2:end) ;
Z = num(2:end,2:end) ;
surf(x,y,Z')
3 comentarios
KSSV
el 23 de Feb. de 2021
x=linspace(-2*Pi,2*Pi) ;
y=linspace(-2*Pi,2*Pi) ;
[X,Y] = meshgrid(x,y) ;
Z = sin(x).*cos(y) ; % element by element multiplication
surf(X,Y,Z)
Más respuestas (0)
Ver también
Categorías
Más información sobre Spreadsheets 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!