Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear all,
I have question about importing data in my program. I do not know how can import name of txt file(that include data) in my program and use this file as argument of my function in Matlab. In fact, I want, user of my program can input name of txt file; after that one of my function in my program usese this file as input argument of function. I want something like load.
Posted

Get the name of the file from the user, either by console or common dialog. Then you just need to read the contents of the file and process it as required.
 
Share this answer
 
The best way for doing this is that we use a strcat function that exists in Matlab.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900