using the Xlsread functon
이전 댓글 표시
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
Geoff Hayes
2015년 7월 15일
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
2015년 7월 15일
Ahmed BOULMANE
2015년 7월 15일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!