read sentences from an excel file

Please, I have an excel file that contains some sentences that I have to get to use them in a script, and I want to know the Matlab command that I should use to do that,

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 13 de Jul. de 2015

0 votos

Use xlsread

3 comentarios

Ahmed BOULMANE
Ahmed BOULMANE el 13 de Jul. de 2015
i think that this function is only useful to read numbers,and I'm looking to read sentences
No, it's not true
[num,str]=xlsread(yourfile)
Ahmed BOULMANE
Ahmed BOULMANE el 15 de Jul. de 2015
Editada: Ahmed BOULMANE el 15 de Jul. de 2015
hello! i used the function xlsread to do that: "[num,txt]=xlsread(nameoffile,'C:C')" then txt(indice,1)='xxxxxxxxxxxxx' so, when i do that: FileName =txt(indice,1) ==> the result is : FileName= 'xxxxxxxxxxxx' but me, i want to do that: FileName='xxxxxxxxxxxx' ==> FileName=xxxxxxxxxxxx in order to use FileName in my script

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 13 de Jul. de 2015

Editada:

el 15 de Jul. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by