Attempted to access solutionsofar(:,0); index must be a positive integer or logical.

1 回表示 (過去 30 日間)
Retam Paul
Retam Paul 2019 年 2 月 20 日
編集済み: Omer Yasin Birey 2019 年 2 月 20 日
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
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 ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by