MATLAB Answers

how can i use variables as part of a address?

6 views (last 30 days)
rad sel
rad sel on 5 Jan 2020
Commented: rad sel on 5 Jan 2020
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

Accepted Answer

awezmm
awezmm on 5 Jan 2020
You can use the fullfile function to build a path from different parts:
finalAddress = fullfile('Network/sharefolder/p426/','/BOM/','myfile.m')
  2 Comments
rad sel
rad sel on 5 Jan 2020
thank you very much <3
it worked correctly.

Sign in to comment.

More Answers (0)

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!