How can I solve this error 'Unable to perform assignment because brace indexing is not supported for variables of this type.'?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi
this is my code
for i=1:448
g{i}=[0:1:447]';
end
for i=1:448
U{i}=inv(K)*g{i};
end
but it doesnot work for U and I recieved this error Unable to perform assignment because brace indexing is not supported for variables of this type.' can you help me with that?
4 comentarios
the cyclist
el 31 de Mayo de 2020
OK, so I made a good guess by making up a random 448*448 matrix. But the code above does not give an error.
There is something else causing the error. Maybe you defined U as something other than a cell array, earlier in the code?
Respuestas (1)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!