How can I create variables in a loop assigning matrix values in a .dat file?
Ältere Kommentare anzeigen
I have a series of .dat files (files_i, with i=1,...,6) consisting of an mxn matrix, and want to create vectors t_i such that the i-th vector takes the 1st column of the i-th file (t_1 = files_1(:,1), t_2 = files_2(:,1)), and so on.
I would like to do that in a loop, but can't find an efficient way to do so.
Any ideas? Thanks in advance
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!