I need to save multiple arrays to a text file in the following format:
n=2 %number of arrays
r=3 %number of rows in the first array
1 2 3 % actual data
4 5 6
7 8 9r=3 %number of rows in the second array
5 6 7 % actual data
1 2 3
7 8 9
Would you help please
Use fprintf. If your arrays are stored in a cell array so that you can iterate through them.