Filter löschen
Filter löschen

is it possible to specify variable name in character using dlmread

1 Ansicht (letzte 30 Tage)
Saba Yousaf
Saba Yousaf am 13 Aug. 2018
Kommentiert: KSSV am 13 Aug. 2018
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?

Antworten (1)

KSSV
KSSV am 13 Aug. 2018
T = readtable('an.txt') ;
T.(1)(1) % first row and first column
  4 Kommentare
Saba Yousaf
Saba Yousaf am 13 Aug. 2018
yes its works but i want to read data one at at time same as in my file"an.txt"
KSSV
KSSV am 13 Aug. 2018
T(1,:) gives you the entire first row.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by