获取当前目录
>> pwd
ans =
D:\GNSS
把某及子目录作为文件搜索目录
%Add myfiles and its subfolders to the search path:
addpath(genpath('c:/matlab/myfiles'))
执行字符串函数
>> z = eval('1+2')
z =
3
获取当前目录
>> pwd
ans =
D:\GNSS
把某及子目录作为文件搜索目录
%Add myfiles and its subfolders to the search path:
addpath(genpath('c:/matlab/myfiles'))
执行字符串函数
>> z = eval('1+2')
z =
3