ploting or showing a 41*41*50 matrixt
Show older comments
hello every one
I have a 41*41*50 matrix that shows geometry of one location that each number shows a specific geometry like old alluvial, new alluvial or special soil like incepti soil and so on, i want to plot this 3D matrix and if possible same number with the same colour. i want to check my gemetries and for doing that plotting need to done. i will send the matrix to show the matrix for better understanding my points of view and sooner help. Is there any one to show me the way? Thank you so much in advance.
Accepted Answer
More Answers (1)
Benjamin Thompson
on 10 Feb 2022
0 votes
Typing "doc plot" will give you documentation on a host of plotting options that MATLAB has. You can use the contour function to look at values along a slice in any dimension, or contour3 to look at the whole thing. Also see the Image Processing Toolbox functions, article "Display and Exploration - Functions", there are a few functions designed to display and look over 3D images.
>> figure, contour(satur(:,:,1))
>> figure, contour3(satur(:,:,1))
3 Comments
Sadegh Dalfardi
on 10 Feb 2022
Benjamin Thompson
on 10 Feb 2022
Edited: Benjamin Thompson
on 10 Feb 2022
Then try different combinations of index values for your 3D matrix. Using colon by itself means use everything in that dimension. Using a single number means only on index in that dimension, so (:,:,1) means a 2D slice along index 1 of the third dimension. To make that even smaller, (1:20,1:20,1) would be a quarter of a 2D slice along index 1 of the third dimension.
Obviously without more information we do not know what you are looking for in your data set. But these are the basic commands for how to explore it in MATLAB.
Sadegh Dalfardi
on 12 Feb 2022
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!