4D plot - representing 3 variables function

조회 수: 2 (최근 30일)
Matan
Matan 2016년 12월 22일
댓글: Walter Roberson 2016년 12월 22일
4D plotting:
I have 3 independent variables - x(7x8x61) , y(7x8x61) , z(7x8x61) - and I have matrix F(7x8x61) - corespond to every value of [x,y,z].
How can I represent F on a 3D grid?
Maybe with a surface, where F values represented in color? (like in the example below)

답변 (2개)

KSSV
KSSV 2016년 12월 22일
편집: KSSV 2016년 12월 22일
clc; clear
[X,Y,Z] = peaks(100);
C = rand(size(Z)) ;
figure
surf(X,Y,Z,C);
colorbar
shading interp
  댓글 수: 1
Matan
Matan 2016년 12월 22일
hi. I see X and Y are transpose of one another. also X,Y,Z are 2 dimensional.
are those conditions nessecery to use this method?

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


Walter Roberson
Walter Roberson 2016년 12월 22일
  댓글 수: 2
Matan
Matan 2016년 12월 22일
what is vol3d function? my matlab doesn't recognize it (version 2015a)
Walter Roberson
Walter Roberson 2016년 12월 22일
Visit that link. On the upper right hand side, click on "Download the ZIP file". Save the .zip and unzip it into a convenient directory that is not underneath the MATLAB installation path. Now use pathtool in MATLAB to add that directory to your MATLAB path. You will then be able to use the function.

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

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by