I am developing a small programme in Matlab using GUI. How can I generate reports in Matlab?

답변 (2개)

ES
ES 2014년 2월 7일
You mean Publish ?

댓글 수: 1

Hello Warrior: Thank you very much for your kind reply. I want to prepare report from the results. For example, the 'uitable' will display the results from the analysis. I want to save the 'uitable results in a separate location and later print it out. How can I do it.

댓글을 달려면 로그인하십시오.

Hello Warrior: Thank you very much for your kind reply. I want to prepare report from the results. For example, the 'uitable' will display the results from the analysis. I want to save the 'uitable results in a separate location and later print it out. How can I do it.

댓글 수: 3

If it is just the uitable's data, you can export it into an excel file. If you have other components, like plot(axes) etc, you can save them as figures.
Eg:
You may have a button to save the data. in the call back function of the button,
%For uitable data
uitable_data=get(handles.uitable,'data');
[sFileName, sPathName] = uiputfile('*.xls', 'Save data as')
sFullFileName=fullfile(sPathName,sFileName)
xlswrite(sFullFileName,uitable_data);
Similarly you can save the axes etc by calling saveas function!
additionally, when you export data into Excel or csv or mat, you can re load the same data by using 'xlsread', 'csvread' and 'load' respectively!!!
Thank you very much. Could you please give me the code for writing the output in 'mat table'. My idea is that the user should save the output in matlab table and print it out later..

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

질문:

2014년 2월 7일

댓글:

2014년 2월 7일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by