Can uiopen open a file in its folder, without full path?
显示 更早的评论
Hello, I need to submit an assignment, which includes a .m and .mdl file. I would like the filename.m to open the filename.mdl and run the simulation. For this i use uiopen('D:\filename.mdl',1), however as I submit it, there is no telling what path the teacher will have the fies in, so is there any way of making this open a file in the same folder as the .m file is itself?
So that I can add them in the same folder and open by just writing 'filename.mdl'. Doing this as the command is now doesn't work and it requires the full path.
1 个评论
Ozan Oguz
2013-5-3
Hi,
Have you found a solution? I have a similar problem. I don't want people to copy&paste the file to the "necessary" location. I need to open whereever the file is.
(it is an unknown format for MATLAB - UFF and UVN , which I defined in an .m file).
回答(1 个)
Image Analyst
2013-5-3
0 个投票
Yes, just leave off the folder part of the filename, and it will look for the file in the normal search path, which includes the "current folder".
类别
在 帮助中心 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!