Need help on how to CREATE a text file in matlab?

3 vues (au cours des 30 derniers jours)
Dani
Dani le 2 Oct 2023
Do I use fopen or table function?

Réponses (2)

Star Strider
Star Strider le 2 Oct 2023
Do I use fopen or table function?
It depends on what you want to do. If you have a numeric array with column text headings, use table and then writetable to create the file. If youu have a matrix, the writematrix function may be more appropriate. If you have a cell array, use writecell.

Cris LaPierre
Cris LaPierre le 2 Oct 2023
It really depends on the data you are trying to write to the file. See this page: https://www.mathworks.com/help/matlab/import_export/write-to-delimited-data-files.html

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by