필터 지우기
필터 지우기

is it possible to specify variable name in character using dlmread

조회 수: 1 (최근 30일)
Saba Yousaf
Saba Yousaf 2018년 8월 13일
댓글: KSSV 2018년 8월 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?

답변 (1개)

KSSV
KSSV 2018년 8월 13일
T = readtable('an.txt') ;
T.(1)(1) % first row and first column
  댓글 수: 4
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by