How do I create a 3 dimensional response surface plot from X Y Z points ?
이전 댓글 표시
Hi all,
I am struggling a bit here, and hope somebody could help. I have a set of X Y and Z points and Z is not found by any function of X and Y. In other words, I have independent X Y and Z values and these values are;
X Y Z
288 2.79 7.55
318 4.64 14.28
127 2.31 8.31
132 7.16 17.27
264 2.31 4.32
200 2.60 6.74
268 3.06 15.12
I need to create a response surface plot (contour plot) from these values. I would be so glad and thankful if somebody could help with with that. I am sorry if question is not very clear. If not, I can ask in detail. In sort, I have eight X Y Z independent data and want to create a response surface.
Best Regards,
Ferdi
댓글 수: 3
Shubham Gupta
2019년 11월 18일
To create a response surface plot, you have to provide Z as a matrix.
Specifically, if two vector arguments X & Y defined such that length(X) = n and length(Y) = m then, size(Z) should be [m,n]. In order to plot the vertices of the surface patches as the triples (X(j), Y(i), Z(i,j)).
You have provided X,Y & Z as vector and if want 3d plot for that you can use
plot3(X,Y,Z)
but I believe that's not what you want.
Question: What kind of plot are you expecting? if you can provide hand drawing or pictures that would be very helpful, right now it's unclear the kind of plot you are expecting with this data.
ferdi bayram
2019년 11월 18일
ferdi bayram
2019년 11월 18일
채택된 답변
추가 답변 (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!

