Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
Manish Kumar
Manish Kumar el 20 de Dic. de 2019
Respondida: Fangjun Jiang el 20 de Dic. de 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.

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 20 de Dic. de 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.

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by