Array concatenation in for loop
Mostra commenti meno recenti
Hi,
I am doing some operation with for loop. The result of each iteration, let's say F1 needs to be svaed in the big matrix G as shown below.
for i = 1:1:10
G (:,:,i) = F1
end
However, the size of the matrix F1 varies for each iteration, owing to this I am getting the following error, Any idea how to handle this
Unable to perform assignment because the size of the left side is 1-by-1444 and the size of the right side is 1-by-1225.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!