Automatic naming of matrix
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Jake
il 2 Mag 2016
Commentato: Walter Roberson
il 2 Mag 2016
Hi,
I have a cell matrix of 300,000 x 100 format. By using for loops, I want to make a new matrix every 10,000 rows while naming each different matrix automatically. For instance, a matrix that contains 1:10,000 from the original huge matrix will have something like matrix_1 as follows:
matrix_1 = [1:10,000,:];
matrix_2 = [10,001:20,000,:];
.
.
.
.
matrix_20 = [190,001:200,000,:];
Would you mind sharing your thoughts on this?
Thanks for your help in advance!
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 2 Mag 2016
Modificato: Azzi Abdelmalek
il 2 Mag 2016
This is not good, Use instead a cell array
matrix{1} = [1:10];
matrix{2} = [1:20]
3 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!