怎么把matlab的GUI文本编辑器中的数据存入EXCEl 5
展开全部
[file,path]=uiputfile({'*.xls','Excel'},'open');
if file
xlswrite([path file],str2num(get(handles.edit3,'string')),'sheet1');
xlswrite([path file],str2num(get(handles.edit4,'string')),'sheet2');
xlswrite([path file],str2num(get(handles.edit5,'string')),'sheet3');
xlswrite([path file],str2num(get(handles.edit6,'string')),'sheet4');
xlswrite([path file],str2num(get(handles.edit5,'string')),'sheet5');
msgbox('the result is saved in sheet1\sheet2\sheet3\sheet4\sheet5','save');
else
msgbox('you havenot saved the result','not save');
end ;
if file
xlswrite([path file],str2num(get(handles.edit3,'string')),'sheet1');
xlswrite([path file],str2num(get(handles.edit4,'string')),'sheet2');
xlswrite([path file],str2num(get(handles.edit5,'string')),'sheet3');
xlswrite([path file],str2num(get(handles.edit6,'string')),'sheet4');
xlswrite([path file],str2num(get(handles.edit5,'string')),'sheet5');
msgbox('the result is saved in sheet1\sheet2\sheet3\sheet4\sheet5','save');
else
msgbox('you havenot saved the result','not save');
end ;
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询