How could plot 3D surface for 4 variable ?

Hello everyone,
i have 4 variables, 3 are coordinates and i make these 3D array by [X,Y,Z] = meshgrid(x,y,z); and another is my fourth variable of similar size. I need to plot 4 of them together where 4th one is data variable. I used scatter3( X(:), Y(:), Z(:),[], w2(:) ) ; but this does not my desired result.
please help me.

5 件のコメント

Walter Roberson
Walter Roberson 2015 年 7 月 29 日
You will need to post an example of what your desired result would look like.
Alaa Hameed
Alaa Hameed 2018 年 1 月 4 日
hello, I have a similar question. I have three variables (x, y, z) which generated from three nested loops. the output of these three loops a fourth variable come out as a results of a mathematical process. How to represent them in a drawing? Thanks,
Walter Roberson
Walter Roberson 2018 年 1 月 4 日
Alaa Hameed, please post a link to an example of what you would like the graph to look like.
Alaa Hameed
Alaa Hameed 2018 年 1 月 5 日
Thanks for your interests. Attached a sample of my data, where: X range= 2200:50:3800 Y range= 0:.005:0.2 Z range= 0:10:500 During each loop I extract my objective function f which I want to minimize. My aim is to inspect if there is more than one minima in f values! Thanks again,
Walter Roberson
Walter Roberson 2018 年 1 月 5 日
In order to tell you how to plot the data, we need you to post an image or a link to an image of what style of plot you were hoping to output. Plotting with three input dimensions and one resulting dimension is not easy to do well.

サインインしてコメントする。

回答 (2 件)

KSSV
KSSV 2018 年 1 月 5 日

0 投票

YOu can plot the stuff, you want....have a look on surf if your data is structured. If your data is not structured, it should be unstructured, then have a look on delaunaytriangulation. For direct help, attach your data.

1 件のコメント

Walter Roberson
Walter Roberson 2018 年 1 月 5 日
surf does not work for volume visualization.

サインインしてコメントする。

Walter Roberson
Walter Roberson 2018 年 1 月 5 日

0 投票

You can use slice() and you can use isosurface(). For R2017a or later you can potentially use volumeViewer()

カテゴリ

質問済み:

2015 年 7 月 29 日

コメント済み:

2018 年 1 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by