I am developing a small programme in Matlab using GUI. How can I generate reports in Matlab?
显示 更早的评论
I am developing a small programme in Matlab using GUI. How can I generate reports in Matlab?
回答(2 个)
D. Suresh Kumar
2014-2-7
0 个投票
3 个评论
ES
2014-2-7
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!
ES
2014-2-7
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!!!
D. Suresh Kumar
2014-2-7
类别
在 帮助中心 和 File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!