Attempted to access solutionsofar(:,0); index must be a positive integer or logical.
1 回表示 (過去 30 日間)
古いコメントを表示
function run_cont(fun,N)
global solutionsofar functionname
functionname=fun;
for k=1:N
ig=2*solutionsofar(:,end)-solutionsofar(:,end-1);
x=newton('continuationloop',ig);
solutionsofar=[solutionsofar,x];
end
This gives me error
Attempted to access solutionsofar(:,0); index must be a positive integer or logical.
Error in run_cont (line 8)
ig=2*solutionsofar(:,end)-solutionsofar(:,end-1);
Please suggest me a fix. Thank You
1 件のコメント
Omer Yasin Birey
2019 年 2 月 20 日
編集済み: Omer Yasin Birey
2019 年 2 月 20 日
You have to assign something into solutionsofar, apparently it has 0 element.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!