is it possible to specify variable name in character using dlmread

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?

回答 (1 件)

KSSV
KSSV 2018 年 8 月 13 日

0 投票

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

4 件のコメント

Saba Yousaf
Saba Yousaf 2018 年 8 月 13 日
thnak you for your time.sir it only reads values in ist row of ist column. actually i want to read my whole data including dates in ist col as well as all variable names in ist row too.
KSSV
KSSV 2018 年 8 月 13 日
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
Saba Yousaf 2018 年 8 月 13 日
yes its works but i want to read data one at at time same as in my file"an.txt"
KSSV
KSSV 2018 年 8 月 13 日
T(1,:) gives you the entire first row.

サインインしてコメントする。

カテゴリ

タグ

質問済み:

2018 年 8 月 13 日

コメント済み:

2018 年 8 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by