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

Answers (2)

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.

Categories

Tags

Asked:

on 2 Oct 2023

Answered:

on 2 Oct 2023

Community Treasure Hunt

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

Start Hunting!