필터 지우기
필터 지우기

How to add 'metadata' or similar to 3d gridded matrix on Matlab

조회 수: 1 (최근 30일)
Michael
Michael 2015년 6월 12일
답변: Walter Roberson 2015년 6월 12일
I have created a 3D matrix 100x200x14
where;
100 = longitude 200 = depth 14 = time;
and it seems to be fine, however the x & y grids are still indices (e.g. 1:1:100 x 1:1:200...).
I would like to somehow add 'metadata' to the data (similar to nc files) where when plotted, the x & y axis automatically show longitude vs depth.
How can I do this using Matlab?
  댓글 수: 2
Michael
Michael 2015년 6월 12일
I forgot to mention, when plotting the 2d matrix:
imagesc(longitudevector,depthvector,3dmatrix) or (100x1,200x1,100x200) it shows me what I would like to see. However, I need to have it in data form.
Michael
Michael 2015년 6월 12일
I have worked out how to get 3x 3d matrices using meshgrid, but now I am stuck how to combine to get one 3d matrix..

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 6월 12일
When you have 3 dimensions of location and 1 dimension of value, you are trying to display 4 dimensions. That's a problem. The easiest way is to encode the 4th dimension as color. However, you still have the difficulty that the outer values would hide the inner values -- can't see "inside" the cube. Sometimes transparency helps for that.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by