How to make image array with X,Y coordinates and displacement?

조회 수: 2 (최근 30일)
Jae-Won Yoo
Jae-Won Yoo 2018년 5월 21일
댓글: Jae-Won Yoo 2018년 5월 23일
Hi guys. I need some help.
I have 5883 x 5 matrix data. it was made by Abaqus (Finite Element method) program. first column is just node number. second column is X coordinate, third column is Y coordinate, fourth column is Z coordinate, fifth column is displacement.
I just want to make 256 * 256 matrix from this data for visualizing and processing with imagesc. (I just want 2D image (X,Y and displacement only))
You can check this data with this code.
figure;scatter3(centerSlice(:,2),centerSlice(:,3),centerSlice(:,4),100,centerSlice(:,5),'.');
please help. thanks.

채택된 답변

KSSV
KSSV 2018년 5월 21일
If you have nodal connectivity data and coordinates, displacement data in hand, you can use the following file-exchange.
  댓글 수: 18
KSSV
KSSV 2018년 5월 23일
YOu can make your mesh like this:
N = 50 ;
R0 = 0.04 ; R1 = 0.08 ;
th = linspace(0,2*pi,N) ;
R = linspace(R0,R1,N) ;
[R,th] = meshgrid(R,th) ;
X = R.*cos(th) ;
Y = R.*sin(th) ;
Z = zeros(size(X)) ;
surf(X,Y,Z)
You need to interpolate your displacement data with these X,Y so, that you can use surf and get the plot you want.
Jae-Won Yoo
Jae-Won Yoo 2018년 5월 23일
okay.. Thank you for your answer and attention. I learned many things.
Good luck and have a nice day.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by