How can I slice on a 1-D matrix?

6 views (last 30 days)
JIYUAN HUANG
JIYUAN HUANG on 18 Mar 2015
Commented: Michael Haderlein on 18 Mar 2015
Hi,everyone!
I have a volume data but it is not arrayed as L*M*N.The data is 4 vectors. Can I use the function 'slice',or is there any way to transform this data into L*M*N martix?
Thx!
  1 Comment
Michael Haderlein
Michael Haderlein on 18 Mar 2015
Do the columns represent the dimensions, so column 1 is x values, column 2 is y values and column 3 is z values? Then, a L*M*N array wouldn't make a lot of sense here as you don't have a uniform mesh but rather individual sample points. You can access them by x=myarray(:,1); and so on.
In case I got the meaning of the columns wrong, the function reshape might help you. slice is no array transformation but a plotting method.

Sign in to comment.

Answers (0)

Categories

Find more on Gravitation, Cosmology & Astrophysics 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!