How to use default Excel data for 3d plots in MATLAB
6 次查看(过去 30 天)
显示 更早的评论
Hello.
I wonder how to transform data from Excel 3D plots in order to use them directly in MATLAB and make 3D plots in MATLAB.
For example - I got a matrix in Excel datasheet:
0 1 2 3 4
1 1 1 1 1
2 1 2 1 1
3 1 4 1 0
4 0 1 1 1
5 0 1 1 1
Where:
- in first column I have x values of the potential 3d plot, starting from 2-nd row (range 1-5)
- in first row I have y values of the potential 3d plot, starting from 2-nd column (range 1-4)
where the core of the matrix contains values of Z (which should be plotted in MATLAB), for the certain crosses of x and y values (axes). This is a defaulf way to plot 3d graphs in EXCEL.
Now the question is How to quickly make 3d plot directly from that matrix? I have a lot of data I the best solution for me would be just copying selected matrix into MATLAB and use come command to plot the 3d graph. My matrices are about [50x100]. Thank you.
0 个评论
回答(1 个)
BhaTTa
2025-7-18
Please refer to this MATLAB Answer : https://www.mathworks.com/matlabcentral/answers/810390
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!