I have 19 files, and I am trying to extract two vectors from each file (u & v), then concatenate them to create two long u and v vectors. I created a function that loads the file and creates the u & v vectors:
function [u,v] = aswinds(filename)
data = readtable(filename);
dataw = table2array(data);
now what I want to do is call this in a loop to do what I explained above.
for i = 1:length(filenames)
[u,v] = aswinds(new2(i));
this is obviously wrong, I just can't seem to figure out how to efficiently extract a u and v vector from each file within the loop using my function before concatenating them. any help is appreciated, thank you!