Hi there,
I'm new to working with matlab. I have experience with bash shell scripts. I have a bunch of .mat files that contain n x n matrices like this toy example:
>> load('matrix1.mat')>> load('matrix2.mat')>> m1m1 = 1 2 3 2 1 5 3 6 1>> m2m2 = 1 3 5 2 1 5 4 9 1
I have two questions:
1. How can I automatically loop through -say- 100 of these to load them into matlab?
2. If they are loaded (in some way), how can I perform calculations on the cells in the matrices such as computing the average across them? In the example below I'm looking for
mAVG = 1 2.5 4 2 1 5 3.5 7.5 1
Thanks so much!
Best Answer