Save the table to a specific folder
47 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Zeynab Mousavikhamene
le 21 Jan 2020
Commenté : Walter Roberson
le 21 Jan 2020
I use this code to save the matlab table. When I run the code, it is done proerly but no table is found at the folder. Any idea?
save_table='C:\Users\imagej output\set test\ImageJ_Result_PostProcessing';
table_path_format = [save_table 'T.xlsx'];
writetable(T,table_path_format);
Thank you
0 commentaires
Réponse acceptée
Plus de réponses (1)
Bhaskar R
le 21 Jan 2020
Modifié(e) : Walter Roberson
le 21 Jan 2020
table_path_format = [save_table '\T.xlsx'];
% you forget to put accurate path that is \ operator
% or correct way is to use fullfile table_path_format = fullfile(save_table,'T.xlsx');
1 commentaire
Walter Roberson
le 21 Jan 2020
\ is a text character in that context, not an operator. \ is a "directory separator" at the operating system level; https://en.wikipedia.org/wiki/Path_(computing)
Voir également
Catégories
En savoir plus sur Data Type Conversion 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!