how can i use variables as part of a address?
1 回表示 (過去 30 日間)
古いコメントを表示
im reading an excel file that include some parts of addresses .and i have to Connect the addresses in excel file to the main address. and then use the final address to get the related file. for example Network/sharefolder/p426/the address that was in excel cell/BOM/the file name that was in excel cell
im reading the address and name from excel file but i dont know how to put them to gather and creat the final address
0 件のコメント
採用された回答
awezmm
2020 年 1 月 5 日
You can use the fullfile function to build a path from different parts:
finalAddress = fullfile('Network/sharefolder/p426/','/BOM/','myfile.m')
2 件のコメント
Stephen23
2020 年 1 月 5 日
Really one of the main advantages to using fullfile is that it automatically handles the path separator character. So to make use of fullfile's functionality, use this:
fnm = fullfile('Network/sharefolder/p426',addressFromExcel,'BOM',fileFromExcel)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!