()-indexing must appear last in an index expression.

2 ビュー (過去 30 日間)
Manish Kumar
Manish Kumar 2019 年 12 月 20 日
回答済み: Fangjun Jiang 2019 年 12 月 20 日
Dear Experts,
I am facing a problem in:
Error: File: bc_line.m Line: 27 Column: 13
()-indexing must appear last in an index expression.
I have attached the matlab programming. I have not provided the input file.
Just look at the program and suggest some solution for the above problem.

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2019 年 12 月 20 日
A=rand(3,4);
size(A,2)
size(A)(2)
Error: Indexing with parentheses '()' must appear as the last operation of a
valid indexing expression.

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by