logical インデックスに、配列範囲外の真の値が含まれています。
Show older comments
タイトルのエラーメッセージに悩んでいます。
エラーを起こす原因もエラーの意味も分かりません。
該当するラインのコマンドは以下の通りです。
wins = sum(result_table.Profit > 0.5);
ロジカル値の総数を求めている訳ですが、ここでエラーが発生します。
また、不思議な現象も発生しています。
変数result_tableを抽出し、コマンドライン上で同じコマンドを実行してもエラーが発生しないのです。
心当たりのある方、ご回答の程よろしくお願いいたします。
Accepted Answer
More Answers (0)
Categories
Find more on プログラミング in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!