Non-numeric data Error using plot.
이전 댓글 표시
I am having problem in plotting the stress. The code as well as the errors are given below:
Error:
Error using plot
Non-numeric data is not supported in 'Line'
Error in stress (line 40)
plot(T/Tg,s)
syms epre et es(T) SS(T) ssfcn; %stored strain
Tl = 273;
Th = 358;
Tg = 343;
Ei = 813E6; %modulus corresponding to the internal energetic deformation
N = 5.938E26;
K = 1.38E-23; %[J/K] Boltzmann's constant
s = 2.76E-5;
n = 4;
epre = 0.091; %pre-strain under tension
Phif = 1-1./(1+s*(Th-T).^n);
y = diff(Phif,T);
fun = @(T)1.42E-6.*T-3.16E-4;
Ee = 3*N*K*T;
E = 1./((Phif./Ei)+((1-Phif)./Ee));
et = int(fun,Th,T);
Des = diff(es);
ode = Des == (epre-es-et).*y.*E./Ee;%writing stored strain as O.D.E
cond = es(Th) == 0; %initial condition for O.D.E
[VF,Sbs] = odeToVectorField(ode);
esfcn = matlabFunction(VF);
Tv = linspace(Th,Tl);
[T,Es] = ode45(esfcn, Tv,0);
s = E.*(epre-Es-et); %stress
figure
plot(T/Tg,s)
grid
xlabel('T/Tg (K/K)')
ylabel('Stress(Pa)')
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Stress and Strain에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!