how to make value stress in mid element on cylinder

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

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Stress and Strain in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by