From: Zia on 15 May 2010 10:36 I am doing the same thing. but in my case i want to save data without the use of matlab. I means, i have created a stand alone exe that can be run without Matlab. And the results that i get is in .mat format. Now i want to write that .mat into excel. The code i am trying is: function writexls_Callback(hObject, eventdata, handles) % hObject handle to writexls (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) if ~isdeployed sp=which('DAE1out.mat'); else sp=[ctfroot,'\work\adm1_phsolv\DAE1out.mat']; end load (sp); if ~isdeployed rp=which('Results.xls'); else rp=[ctfroot,'\work\adm1_phsolv\Results.xls']; end xlswrite(rp, rt_DAE1out, 'Digester_Outputs', 'B2:AZ4002'); But its not working i am having the following error: ??? Undefined function or method 'MT' for input arguments of type 'struct'. Error in ==> guidemfile>@(hObject,eventdata)MT_Energy('writexls_Callback',hObject,eventdata,g uidata(hObject)) ??? Error while evaluating uicontrol Callback
|
Pages: 1 Prev: GUI's and tables...question from a noob Next: Parallelized PINV |