Plotting using a for loop
显示 更早的评论
Hello, I'm having a difficulty plotting the results using a for loop. I want to plot epsilon vs sigma but I get the following error: Array indices must be positive integers or logical values. Can you please help me? Thank you.
E=200*10^9; %Pa Elastic Modulus
v= 0.28; %Poisson's Ratio
eps=linspace(0,0.1,1000);
Y= 375.8;
m=2000;
n=0.5;
for i= 1:1000
sigma(i)=Y(1+m*eps(i)^n)
end
eps=[0 eps];
plot(eps,sigma)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Poisson Distribution 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!