代码拉取完成,页面将自动刷新
%------------------------------------------------------------------------------
% Matlab scrip for p file created.
% MATLAB version: R2017a
% Author : Shibo Jiang
% Time : 2017/8/28
% Version : 0.1
% Instructions : Use this scrip and the *.m files which need translating
% to *.p files in the same folder.
%------------------------------------------------------------------------------
%-----Start of creat_p_files---------------------------------------------------
function output = creat_p_files()
% get work floder path
the_path = cd;
% get all files in this floder
files = dir(the_path);
% find the .m files' name
length_all_files = length(files);
select_type = '.m';
for i = 1:length_all_files
current_name = files(i).name;
% protect from wrong state running
try
current_type = current_name(end-1:end);
if 1 == strcmp(select_type,current_type)
% creat .p file
pcode (current_name);
else
% not .m file, do nothing
end
catch
% do nothing
end
end
output = 'Creat P files successful';
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。