tags:

views:

12

answers:

0

Now I'm implementing a parametric study using MATLAB in connection with COMSOL. I use 3 nested for loops to study the effect of three different independent parameters on multiple dependent parameters (e.g. A,B, C,D, ..) where A, B, C, D are 2d arrayes. The problem which I face at the time being is: How to export the solution 2d arrayes to different excel sheets in the same file where each single sheet belongs to the solution data which corresponds to the first for loop (i.e. the first investigated independent parameter) while the 2d solution arrays belong to the entire 2 nested loops. I want both to store the data to both Excel and matlab file (structure of cells which contains multiple 2d arrays within each cell).

Would you please advise how can I solve this problem, I highly appreciate if you can send me detailed syntax or real available examples.

Many thanks for your continuous support.

Kind regards

Abdel Hakim Hassabou