How to add a cell array inside another cell array in a nested for loop?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Omar Andrés Rosada González
am 25 Sep. 2020
Kommentiert: Sourabh Kondapaka
am 2 Nov. 2020
Hello everyone.
I would like to know how I could make this one. I`m trying this:
for i=1:sets
for j = 1:n_disc
x_r = A{i}*(data{i}(j,:)');
X_r{1,i}(1,j) = {[x_r]};
end
end
But I get this error:
Index in position 1 exceeds array bounds (must not exceed 53).
How could I make this work?
7 Kommentare
Sourabh Kondapaka
am 2 Nov. 2020
Can you share the variables that are being used in your code as a .mat file ?
To save variables in workspace to a .mat file, refer this link
Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!