2

I've written a MATLAB code which generates a 3D array and I want to write that array into an Excel sheet. For example, if the size of my array is 4x24x28 then it should be written in 28 different sheets in Excel.

Is there an elegant way to do this?

1

1 Answer 1

2

I found out a solution for the above question. The code should look like this:

filename_1 = 'Nod_TS.xlsx';
A = Nod_TS(: , : , i) ;
xlswrite(filename_1, A , ['ID_',int2str(i)] );

Where, A should be the 2D array.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.