MATLAB Answers

0

is it possible to specify variable name in character using dlmread

Asked by Saba Yousaf on 13 Aug 2018 at 5:44
Latest activity Commented on by KSSV
on 13 Aug 2018 at 6:13

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?

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by KSSV
on 13 Aug 2018 at 5:54

T = readtable('an.txt') ;
T.(1)(1)    % first row and first column

  4 Comments

Show 1 older comment

Check T all the data is already read. T.(1) gives you entire first column. T.(i) gives you entire i'th column.

yes its works but i want to read data one at at time same as in my file"an.txt"

T(1,:) gives you the entire first row.

Sign in to comment.