How can I create variables in a loop assigning matrix values in a .dat file?
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!