How to read file .txt?
Mostra commenti meno recenti
I have file .txt contains
1 2
2 3
I want to read the file and put each value 12 , 23 in a cell array
How can I do that
Please help me.
Thanks
6 Commenti
dpb
il 9 Dic 2019
Are the inputs actually separate in the file as shown and you really want them combined as numeric?
Why use a cell array for numeric values?
Mira le
il 9 Dic 2019
Guillaume
il 9 Dic 2019
You haven't answered dpb question. The simplest way to clarify what your input file actually looks like is to attach an example.
Also, please explain why you want the result as a cell array when using a matrix would make everything simpler.
Mira le
il 9 Dic 2019
Adam Danz
il 9 Dic 2019
Mira le
il 9 Dic 2019
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Matrix Indexing 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!