using the Xlsread functon
Ältere Kommentare anzeigen
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
3 Kommentare
Geoff Hayes
am 15 Jul. 2015
Ahmed - since FileName is a string of characters it will be wrapped in single quotes. Why would you want it without the quotes? How are you using this variable in your code?
Ahmed BOULMANE
am 15 Jul. 2015
Ahmed BOULMANE
am 15 Jul. 2015
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Spreadsheets finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!