is it possible to specify variable name in character using dlmread
Mostrar comentarios más antiguos
Hi there. in my data file first row and ist column contains the character values, in this case how can i specify ist row and ist column values (names) using dlmread? if you suggest to use readtable command than in that can how can i specify same case?
Respuestas (1)
KSSV
el 13 de Ag. de 2018
T = readtable('an.txt') ;
T.(1)(1) % first row and first column
4 comentarios
Saba Yousaf
el 13 de Ag. de 2018
KSSV
el 13 de Ag. de 2018
Check T all the data is already read. T.(1) gives you entire first column. T.(i) gives you entire i'th column.
Saba Yousaf
el 13 de Ag. de 2018
KSSV
el 13 de Ag. de 2018
T(1,:) gives you the entire first row.
Categorías
Más información sobre Standard File Formats en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!