How to save results in a text file that can be read by windows and mac machines?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Meshooo
am 15 Mär. 2016
Kommentiert: Meshooo
am 18 Mär. 2016
Dear all,
I'm trying to save the results in a text file by pressing a button in the developed GUI. I want this to be possible for both Windows and Mac users. Is there any way to do so?
Before I use this code for creating an excel file and save the results. But for Mac users or if no excel program then it was a problem.
Excel = actxserver('Excel.Application');
set(Excel,'Visible',1);
Workbooks = Excel.Workbooks;
Workbook = invoke(Workbooks, 'Add');
Sheets = Excel.ActiveWorkBook.Sheets;
Sheet1 = get(Sheets, 'Item', 1);
Sheet1.Activate;
Shapes = Sheet1.Shapes;
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 15 Mär. 2016
MATLAB on mac can read xlsx files but not necessarily xls files.
You can also write csv files.
Or you can use fopen, fprintf, fclose to write a text file.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!