MATLAB Answers

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

4 views (last 30 days)
Manish Kumar
Manish Kumar on 20 Dec 2019
Answered: Fangjun Jiang on 20 Dec 2019
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.

  0 Comments

Sign in to comment.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 20 Dec 2019
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.

  0 Comments

Sign in to comment.

Sign in to answer this question.