Visualization of 4 dimensional function

조회 수: 2 (최근 30일)
Manisha Dixit
Manisha Dixit 2021년 5월 20일
답변: Girijashankar Sahoo 2021년 5월 20일
I am calculating a distribution function which is 4 dimensional.
I have two space variables x and y and coresponding to them,two conjugate momenta kx and ky.
Though I know i have to select two conjugate variables at one time and then calling the function and finally plot it for 2 variables.
But i dont know how to store that 4D matrix and then calling it to plot it.
Anything related to 4D would help.
Thanks

답변 (1개)

Girijashankar Sahoo
Girijashankar Sahoo 2021년 5월 20일
%%% this might be helpful for you there is four variable gives 4D matrix plot
load patients Height Weight Diastolic Systolic % load data
labels = {'Height' 'Weight' 'Diastolic' 'Systolic'};
data = [Height Weight Systolic Diastolic];
[h,ax] = plotmatrix(data); % create a 4 x 4 matrix of plots
for i = 1:4 % label the plots
xlabel(ax(4,i), labels{i})
ylabel(ax(i,1), labels{i})
end

카테고리

Help CenterFile Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by