Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过从完整路径中删除当前文件名来计算路径?到目前为止我有这个:
fullPath = mfilename('fullpath') curMfile = mfilename(); path =
但我不知道该放什么路径。
You can use [pathstr, name, ext] = fileparts(filename)
[pathstr, name, ext] = fileparts(filename)