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
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 replies · 4K views
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
 
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?