txt file to matrix

5 vues (au cours des 30 derniers jours)
Nelly
Nelly le 26 Mar 2012
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

Réponse acceptée

Walter Roberson
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?

Plus de réponses (0)

Catégories

En savoir plus sur Cell Arrays 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