3d Projection Plots
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192058/image.png)
Is it possible to make similar plots in matlab?
3 commentaires
Jacob Mathew
le 29 Nov 2024
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
Réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!