How to Create a 3D Plot in Matlab for Matrix Visualization?

  • Context: MATLAB 
  • Thread starter Thread starter katie_smith
  • Start date Start date
  • Tags Tags
    3d Matlab Plot
Click For Summary
SUMMARY

This discussion focuses on creating a 3D plot in Matlab for visualizing a 320 x 333 x 4 matrix, referred to as alpha, alongside a similar beta matrix. The user seeks to implement a stacked colored scatter plot with a color bar to represent angles effectively. Suggestions include utilizing the scatter3 and quiver3 functions in Matlab to achieve the desired visualization. These functions can facilitate the representation of angles through arrows and colored points in a 3D space.

PREREQUISITES
  • Familiarity with Matlab programming environment
  • Understanding of 3D plotting techniques in Matlab
  • Knowledge of matrix manipulation in Matlab
  • Experience with color mapping and color bars in visualizations
NEXT STEPS
  • Research how to use scatter3 for 3D scatter plots in Matlab
  • Explore the quiver3 function for visualizing vector fields in 3D
  • Learn about color mapping techniques in Matlab for effective data representation
  • Investigate Matlab's color bar functionality to enhance plot readability
USEFUL FOR

This discussion is beneficial for data scientists, researchers, and engineers who require advanced visualization techniques in Matlab, particularly those working with multi-dimensional matrices and 3D data representation.

katie_smith
Messages
1
Reaction score
0
Hi everyone,

I'm working on a project where I need to produce a 3D plot for matrix using Matlab. The plot must comprise of both alpha and beta in 3D. Alpha, A is a 320 x 333 x 4 matrix, where each individual layer (i.e. A(320,333,i) for i = 1:4) represents one image's angles. The beta matrix is similar.

I've searched around, but I can't find a way of doing such plots in Matlab anywhere. I can quite easily do a coloured plot in 2D but the 3D plot is the one needed for visualisation purposes. I wanted to do a stacked coloured scatter plot in 3D to form the image volume somehow. It would need to be a coloured scatter plot with a colour bar scale on the side so we can know what each colour represents angle-wise. Please, oh please if any of you could help me I would be forever grateful.

Katie x
 
Physics news on Phys.org
Sorry, I'm not a Matlab user, but I wonder if scatter3 or quiver3 (particularly as you might be able to use arrows to show the angles) might provide a way of achieving what you want?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K