How to use workspace variables in functions
5 次查看(过去 30 天)
显示 更早的评论
I am working on writing a script that must extract data that is stored in a .txt file. The program that generates this data stores it in a txt file. There is about 20 lines of header before the data starts and then some data after the data that i am interested in ends. The rows of the data could change depending on the person who was the subject of the data. So i was using the inbuilt Import data function in the Home Tab to import data in a matrix but it is stored as a variable in the workspace. Is there a way that i could use the in the function that i am writing. Or is there a function that could help me call the variable from the workspace that i could incorporate in the script. Any help would be greatly appreciated.
0 个评论
采纳的回答
per isakson
2015-10-15
编辑:per isakson
2015-10-15
If you need more help upload a couple of sample text files.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!