how to make value stress in mid element on cylinder

2 views (last 30 days)
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 Comments
Nobeth Bastanta Ginting
Nobeth Bastanta Ginting on 10 Jul 2022
this answer in plat 2d. but how i can do it in cylinder sir?
Simson Hutagalung
Simson Hutagalung on 13 Jul 2022
How to plot like 2D plate, sir? The colormap In element like that, sir. Thank you

Sign in to comment.

Answers (0)

Categories

Find more on Stress and Strain in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!