how to make value stress in mid element on cylinder
조회 수: 1 (최근 30일)
이전 댓글 표시
hello sir can you help me how to make value stress in mid element on cylinder with coding reshape. i have data stress in mid element. can i do it ?. i have data coordinat is 110 data, data element is 110 data and data value stress 100 data. i want value stress in mid element. i was use coding reshape but i can not how to plot it. can you help me the coding?. thank you sir.
clear all
A = readtable('valuestress.xlsx');
t = readtable('element.xlsx');
p = readtable('nodes.xlsx');
A = table2array(A);
t = table2array(t);
p = table2array(p);
x = p(:,1); y = p(:,2); z = p(:,3);
nx = length(unique(x)) ;
ny = length(unique(y)) ;
nz = length(unique(z)) ;
X = reshape(x,nx,ny) ;
P = reshape(x,nx,nz) ;
Y = reshape(y,nx,ny) ;
Z = reshape(z,nx,ny) ;
S = reshape(A,ny-1,nz-1);
f1 = figure ;
set(f1,'name','Stress','numbertitle','off') ;
plot3 (X,Y,Z,'k');
댓글 수: 4
Simson Hutagalung
2022년 7월 13일
How to plot like 2D plate, sir? The colormap In element like that, sir. Thank you
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Stress and Strain에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!