load txt as structure
    8 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
If i have a .txt file of this type:
Name Jack Surname Black Date 10/06/2016
is there a way to load it in matlab as a structure with name, surname and date as fields and jack, black and 10/06/2016 as values? Thanks
0 Kommentare
Antworten (1)
  TastyPastry
      
 am 10 Jun. 2016
        Let's say your input line is stored in data:
in = strsplit(data);
st=struct(in{1},in{2},in{3},in{4},in{5},in{6});
0 Kommentare
Siehe auch
Kategorien
				Mehr zu Structures finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

