Trouble using readtable function

조회 수: 2 (최근 30일)
Valentina Martinez
Valentina Martinez 2022년 4월 17일
댓글: Valentina Martinez 2022년 4월 17일
Hello!
I am trying to read a .txt file into a table in MATLAB, using
TGWAS = readtable(AD_magma_genes.txt, 'FileType', 'text')
But I keep getting the error 'Unable to resolve the name AD_magma_genes.txt'
I put the file in the same folder I have been using for everything so far, and it still doesn't want to read it into MATLAB. Any idea how I can fix this problem?
Thank you!

채택된 답변

Arif Hoq
Arif Hoq 2022년 4월 17일
편집: Arif Hoq 2022년 4월 17일
you need to specify the file with single quotation.
TGWAS = readtable('AD_magma_genes.txt')
  댓글 수: 1
Valentina Martinez
Valentina Martinez 2022년 4월 17일
Oh wow, what a silly mistake. Thank you so much!!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by