convert a cell to .xls file and save it in a specified folder
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
does anyone know how to convert a matrix to .xls file and save it in a specified folder?
for example:
% r is a cell and path is certain
if ~exist(path\r.xls)=7
make r.xls
else
make r.Date Modified.xls in path % Date Modified can obtain by dir()
end
0 commentaires
Réponse acceptée
Fangjun Jiang
le 5 Sep 2011
data=magic(5);
file=fullfile(pathstr,'r.xls');
if exist(file,'file')
file=fullfile(pathstr,'Modified.xls');
end
xlswrite(file,data);
10 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur File Operations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!