필터 지우기
필터 지우기

How to plot a surface from x and y having different values of z, i.e. (x,z1) and (y,z2)?

조회 수: 3 (최근 30일)
Hi, I am trying to draw a surface from two sets of results, set A and set B. Each set has two columns, column 1 and column 2. I would like to plot a surface from these two sets, such that column 2 in each set is the z axis, while columns 1 in sets A and B are x and y axes, respectively.
I have attached herewith the sets of data for your kind reference.
Thank you.
  댓글 수: 2
KSSV
KSSV 2017년 8월 23일
We can comment only after looking at data....this can be a structured grid or cannot be a structured grid.....attach your data, so that we can help you.
Ismail Qeshta
Ismail Qeshta 2017년 8월 23일
Hi KSSV,
Many thanks for your comment. Sure, they are attached herewith.

댓글을 달려면 로그인하십시오.

채택된 답변

John D'Errico
John D'Errico 2017년 8월 23일
Insufficient information to draw a "surface".
You have essentially marginal data, in the sense of a marginal distribution. So for each point, you have x and z, or y and z.
But a surface requires that for ANY combination of x AND y, you can produce a value of z. So for any point in the first set, you know what value of x produced a value z. But you provide no information about the y that was used, even if only implicitly. So all the y data is missing there. The same applies to the second set. x is completely missing.
So, sorry, but you have insufficient information to generate the surface between those axes. It could do anything you wish to imagine for some combination of both x and y. But since there is no hint as to what it does do, you are stuck. You cannot infer a complete surface.
  댓글 수: 1
Ismail Qeshta
Ismail Qeshta 2017년 8월 23일
Hi John,
Yes, I guess you are right. I will have a look at my data again.
Thank you very much.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by