Surface plot with four independent variabels
이전 댓글 표시
Dear Matlab experts,
I have a function f(w,x,y,z) that has four independent variables, w [1xm], x [1xn], y[1xp] and z[1xq].
In order to plot f, I use w as a parameter i.e. multiple plots with a single chosen value from w vector. Now, there are three variables left. The "surf" function allows only two independent variable matrices of order nxp created by [mesh_x, mesh_y] = meshgrid (x,y). The resultant function evaluation is also of order nxp.
But I have a third independent variable z. So, I tried to use [mesh_x, mesh_y, mesh_z] = meshgrid (x,y,z) and wanted to use the third variable matrix to encode the surface plot color C (in surf(x,y,f,C) syntax) matrix. However, this meshgrid produces 3-dimensional matrices which are not accepted by surf function. The surf function requires all matrices to be of order nxp (n and p defined as in this case).
Can some valued member please guide me how to encode the surface color in this case?? Or suggest me some other solution?? I have already checked following threads:
but they don't apparently solve my problem.
Any suggestions and help is highly appreciated.
Thank you ..
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!