How can I print a matrix in a file with R2016 ?
Mostra commenti meno recenti
Hi I would like to print a 302*100 matrix in a file (preferably in an excel file).
xlswrite and writematrix doesn't work.
3 Commenti
Adam
il 3 Lug 2019
I'm sure
writematrix
works fine if you use it correctly, but we have no idea how you use it since you haven't shown us.
Guillaume
il 3 Lug 2019
Actually, I'm sure that writematrix won't work in R2016 since it's just been introduced in R2019a.
xlswrite on the other hand will work without problem in R2016.
However, Adam is correct, whenever you report a problem, give us the code that you use and the full text of the error message you get. We're not mind readers.
Stephen23
il 3 Lug 2019
Valentine SEVEAU's "Answer" moved here:
When I want to use it, I have that :
Undefined function or variable 'writematrix'.
Risposte (1)
Marina Fernandez
il 21 Set 2022
Modificato: Marina Fernandez
il 21 Set 2022
0 voti
You can try csvwrite (but now it is not recommended). If you can use MATLAB 2019a or later, you should use writematrix function.
Other options:
- save it in excel with xlswrite.
- convert matrix to cell array (M to Mcell) and then use cell2table (Mcell to Mtable) and finally run writetable(Mtable,'M.csv');
Categorie
Scopri di più su Spreadsheets in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!