Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

Putting the results of some variables in one sheet

Asked by som on 8 Dec 2012
 Hi all,

I've written a program with some outputs like 'a', 'b', 'c' which are seprated in different sheets of MATLAB.

To see the results in 'a', 'b', 'c',I have to click and open three times which is time-consuming.

How can I write some comands to put the results of 'a', 'b', 'c' beside each other.

I mean 'a', 'b', 'c' are presented in one table whit the heading of 'a', 'b', 'c' .

 How can I write this program?
 Thanks in advance.

6 Comments

som on 8 Dec 2012

I mean 'a', 'b', 'c' are presented in one table whit the heading of 'a', 'b', 'c' .

Walter Roberson on 8 Dec 2012

Do you mean uitable() in three different figures at present? Or do you mean you are outputting three different Excel files? Or do you mean you are outputting to three different "sheets" within one Excel file?

som on 8 Dec 2012

I mean " Or do you mean you are outputting to three different "sheets" within one Excel file?"

som

Tags

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 8 Dec 2012
Accepted answer

If the outputs are the same size, then put them together in a cell array and xlswrite() the cell array. You might find num2cell() useful along the way.

0 Comments

Walter Roberson

Contact us