Subscript indices must either blabla

9 ビュー (過去 30 日間)
Tommaso
Tommaso 2014 年 3 月 4 日
コメント済み: Tommaso 2014 年 3 月 5 日
>> gamma=0;
>> s=0;
>> dx=linspace(0,10);
>> dx=0.1;
>> xv=linspace(0,10);
>> f=@(x) sin(2*pi*x/10);
>> xnodes=(0:0.1:10-0.1);
>> f=adr_per_cen_fd(0,f(xnodes),u,ni,gamma,s,xnodes,dx);
SUBSCRIPT INDICES MUST BE POSITIVE OR REAL, UHM. can you help me?
Thank you
  1 件のコメント
Star Strider
Star Strider 2014 年 3 月 4 日
What is ‘adr_per_cen_fd’?

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2014 年 3 月 4 日
What is adr_per_cen_fd? It thinks it is an array, not a function and if its an array, all the dimensional indexes must be integers. You can't have the 0.1th column of a matrix.
  1 件のコメント
Tommaso
Tommaso 2014 年 3 月 5 日
Grazie!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by