Why do I get the error 'Subscript indices must either be real positive integers or logicals ' for the below code?
6 ビュー (過去 30 日間)
古いコメントを表示
xa = (x-xc_t(t)+bx_t(t))/(sr2*betax_t(t));
回答 (1 件)
Image Analyst
2015 年 1 月 2 日
t is either 0, negative, or some fractional value, like 3.00023 or something. If, before that line you put
format long
t
what does it show in the command window? How did you define t in the first place?
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!