Hello,
I have several variables, all saved as individuals, that I am processing. Each variable has one column of data in varying lengths. These are loaded into Matlab with a for loop, so as to automate the processing. I want to combine all of this data into a one-column matrix. I also eventually want to calculate standard deviation and the mean itself from the created matrix. How would I accomplish this?
Here's an example:
A = 3 4 5B = 5 6 7 8C = 3 2
I want to combine A, B, and C into a matrix, D, that would look like this:
D = 3 4 5 5 6 7 8 3 2
and then eventually average them so
E = mean(D)
and
F = std(D)
Please keep in mind that these variables are all saved separately. I don't know if that makes a difference (I'm kind of a newb) but if it does, please keep that in mind.
Thanks!!!
Best Answer