I am trying to execute below code and I keep getting this error.
古いコメントを表示
a=input('enter the value of mean: ');
P = 1
E=exp (-a)
R=[13,7,0.6]
R1=R(1)
R2=R(2)
R3=R(3)
for n=0:3
R= R(n+1)
Po=P.*R
if P < E
N=n
else
n=n+1
end
end
The error is
Error:Attempted to access R(2); index out of bounds because numel(R)=1.
Error in poisson (line 11)
R= R(n+1)
1 件のコメント
Xander May
2017 年 5 月 30 日
Running perfectly fine on my machine, is this properly formatted in your program?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Multibody Modeling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!