Why do I get this error subscript indices must either be real positive integers or logicals?

2 ビュー (過去 30 日間)
Henrique
Henrique 2014 年 5 月 20 日
コメント済み: Henrique 2014 年 5 月 20 日
Hello,
I'm trying to plot this function, but I get the error "Subscript indices must either be real positive integers or logicals". Could you please help me. The Code the im trying to plot is this one:
sg0=100;% Zero stress
E=2900;% young's modulus of PP
n=1000; % kinematic viscocity N/mm
t=(0:10);
e=sg0*(1-exp(-(t*E)/n));
plot(t,e(t));
Thank you!

回答 (1 件)

Yao Li
Yao Li 2014 年 5 月 20 日

カテゴリ

Help Center および File ExchangeStress and Strain についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by