How to save gui data in excel
1 次查看(过去 30 天)
显示 更早的评论
How can i save the gui data into excel? and I want it to be save into new row everytime i click the save button. I tried this but it just in same row everytime.
rownumber=xlsread('COLONPOLYPS.xlsx');
%code code code
%then, in the end:
rownumber=rownumber+1;
xlswrite('COLONPOLYPS.xlsx',arr);
2 个评论
Mathieu NOE
2021-3-3
hello
no surprise , as it seems you don't specify the range where to write the data, so xlswrite keeps overwritting in the first row
you have to specify the range : xlswrite(FILE,ARRAY,SHEET,RANGE)
also xlswrite is outdated, please consider using writetable
采纳的回答
Abdulaziz M. Ghaleb
2021-3-3
First, you need to note that xlswrite is not recommended starting form Matalb 2020a
There are another functions to be used instead, you can check the documentations.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!