Error in code line can't solve
显示 更早的评论
Hello,
I have an error in my sigma_3b line and I can't plot my graph because of it. I was wondering if someone could help me figure out why my calculation won't complete. Here's my code down bellow.
clc, clear all,close all
u=0.166;
k1=5.140;
k2=337.6;
lambda_3b=1.0:0.05:2.0;
sigma_3b=(u*(lambda_3b.^1)).*((lambda_3b.^1)-1)+(2*k1)*((lambda_3b.^2)-1).*(exp(k2*((lambda_3b.^2)-1))^2);
figure
plot(lambda_3b,sigma_3b)
title('Sigma 1, Sigma 2 vs Lambda')
xlabel('Stretch Ratio Lambda')
ylabel('Principle Stretch (P/Ao)')
legend('\sigma 3b')
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!