txt file to matrix
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi there. I have txt file with data (integers). My file has 140 rows with changing number of elements(numbers) (from 6 to 12)in each row. I want to convert this data to matrix. How can you help me? thanks a lot. Nelly
0 commentaires
Réponse acceptée
Walter Roberson
le 26 Mar 2012
What kind of matrix are you wanting? Numeric matrices must have the same number of elements in each row. Did you want the missing values to be filled in with NaN or with 0, or did you want to use a cell array?
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Cell Arrays 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!