Error: ()-indexing must appear last in an index expression
Ältere Kommentare anzeigen
I m getting this error while i try to execute this code
for i=1:n
for j=1:n
b1=bu(1,i)(j);
a1=(n*b1/(m(i)*m(j)));
p{1,i}=a1;
end
end
here bu is a cell of size(1,n)
m is an array of size(1,n)
p is i a cell of size(1,n)
please help
Thanks in advance!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Matrix Indexing finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!