Is it possible to make similar plots in matlab?

댓글 수: 3

KSSV
KSSV 2018년 7월 18일
Very much possible.....but you need to have (x,y,z) locations of each point/ line shown.
Vijay Anand
Vijay Anand 2018년 7월 18일
Thanks for your quick response. Is there a function available in matlab / matlab central file exchange for doing similar plots? Kindly let me know.
From a variable depending on 3 variables,may be shown as colour contours, we are projecting on to three views (Front,Top,Right) to obtain the dependency on two variables, with contour plot.
Hi Vijay,
To get started, you can try to plot the 3 dimensional data you want and change the projection plane to visualise the data. Further analysing can be done on the individual perspectives. The below code shows an example of generating different projections:
[x, y, z] = peaks; % Generate the data for the surface plot
% Create the first figure for the X-Z plane projection
figure;
ha1 = axes;
surf(x, y, z);
xlabel('x'); ylabel('y'); zlabel('z');
title('Projection on the X-Z plane');
view(ha1, [0, 0]); % Set the view for the X-Z plane
% Create the second figure for the Y-Z plane projection
figure;
ha2 = axes;
surf(x, y, z);
xlabel('x'); ylabel('y'); zlabel('z');
title('Projection on the Y-Z plane');
view(ha2, [90, 0]); % Set the view for the Y-Z plane
% Create the third figure for the X-Y plane projection
figure;
ha3 = axes;
surf(x, y, z);
xlabel('x'); ylabel('y'); zlabel('z');
title('Projection on the X-Y plane');
view(ha3, [0, 90]); % Set the view for the X-Y plane

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

답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

릴리스

R2012b

질문:

2018년 7월 18일

댓글:

2024년 11월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by