Trouble using readtable function

2 vues (au cours des 30 derniers jours)
Valentina Martinez
Valentina Martinez le 17 Avr 2022
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!

Réponse acceptée

Arif Hoq
Arif Hoq le 17 Avr 2022
Modifié(e) : Arif Hoq le 17 Avr 2022
you need to specify the file with single quotation.
TGWAS = readtable('AD_magma_genes.txt')
  1 commentaire
Valentina Martinez
Valentina Martinez le 17 Avr 2022
Oh wow, what a silly mistake. Thank you so much!!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by