How to plot 4D contour lines (XYZ-V) in MATLAB?

只愿长相守 提交于 2019-12-02 06:18:56

问题


I have dataset of XYZ as the coordinates and V as the value at each point (100x4 matrix).

I plot the 3D surface using patch. (by faces & vertices)

How can I plot the contour lines of V (NOT Z) over the 3D surface !?

( The Contour3 function plots 3D contour lines of Z ; But I need contour lines of V. )

Actually I want something like this or this.

Thanks a billion for your help.


Well actually I found out that the isosurface command is exactly what I want.

However, this command requires the V data to be a 3D matrix. But my V is a vector. And the data in it is completely non-uniform and irregular. Now here rises a new question :

How can I convert this non-uniform vector to a 3D matrix, so that it's ready to be used with isosurface command !!?

Please help me with this.


回答1:


cont3d from MathWorks FileExchange is not exactly what you're looking for, but it may give you some ideas.



来源:https://stackoverflow.com/questions/15684023/how-to-plot-4d-contour-lines-xyz-v-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!