91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 46.6M
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-06-20
  • 語言: 其他
  • 標簽: 其他??

資源簡介

simmechanics.zip

資源截圖

代碼片段和文件信息

function?install_addon(zip_file)
%
%?INSTALL_ADDON?Install?the?specified?addon?to?the?current?MATLAB?installation.
%???INSTALL_ADDON?ZIP_FILE.ZIP?Install?the?contents?of?ZIP_FILE?to?MATLABROOT.

%???Copyright?2008-2012?The?MathWorks?Inc.

%?first?check?if?the?jvm?is?available
if?(~usejava(‘jvm‘))
????error(‘install_addon?requires?Java?to?run.‘)
end

%?check?args
if?(nargin?~=?1)
????error(‘Usage:?install_addon?‘)
end

%?check?if?archive?exists
if?(exist(zip_file?‘file‘)?~=?2)?
????error(‘Archive?%s?does?not?exist.\nInstallation?failed.‘?zip_file)
end

%?obtain?addon?name?ver?and?arch?from?zip_file?name
[~?zip_file_name?~]?=?fileparts(zip_file);
[addon_name?remain]?=?strtok(zip_file_name?‘.‘);
[addon_rel?remain]?=?strtok(remain?‘.‘);
addon_arch?=?strtok(remain?‘.‘);
%?strip?off?‘r‘?prefix?from?addon_rel
addon_rel?=?strtok(addon_rel?‘r‘);

msg?=?sprintf(‘Installing?%s...‘?addon_name);
disp(msg)

%?check?addon?arch?against?matlab?arch
matlab_arch?=?computer(‘arch‘);
if?(~strcmpi(matlab_arch?addon_arch))?
????error(‘Archive?architecture?(%s)?does?not?match?the?MATLAB?architecture?(%s).\nInstallation?of?%s?failed.‘?addon_arch?matlab_arch?addon_name)
end

%?check?addon?ver?against?matlab?ver
matlab_rel?=?version(‘-release‘);?
if?(~strcmpi(matlab_rel?addon_rel))?
????error(‘Archive?release?(%s)?does?not?match?the?MATLAB?release?(%s).\nInstallation?of?%s?failed.‘?addon_rel?matlab_rel?addon_name)
end

%?installing?to?matlabroot
install_dir?=?matlabroot;

%?unzip?zip?file?to?install_dir
msg?=?sprintf(‘Extracting?archive?%s?to?%s...‘?zip_file?install_dir);
disp(msg)
unzipped_files?=?unzip(zip_file?install_dir);

%?check?if?files?were?extracted?from?zip?file
if?(isempty(unzipped_files))
????error(‘No?files?were?extracted?from?archive?%s.\n%s?installation?failed.‘?zip_file?addon_name)
end

%?fix?permissions?on?extracted?files?-?make?files?writable
for?i?=?1:length(unzipped_files)
????file?=?unzipped_files{i};
????fileattrib(file?‘+w‘);
end

%?add?directories?from?addon?.phl?file?to?pathdef.m?current?path
msg?=?sprintf(‘Adding?directories?for?%s?to?path...‘?addon_name);
disp(msg)

%?stash?current?path?pathdef?before?re-creating?pathdef
current_path?=?path;
saved_path?=?pathdef;

%?turn?off?duplicate?path?warning?before?modifying?path?
w_state?=?warning(‘off‘?‘MATLAB:dispatcher:pathWarning‘);

%?recreate?pathdef?to?get?newly?added?.phl?file?into?pathdef
restoredefaultpath;
path(saved_path?path);
if?(savepath?~=?0)
????disp(‘Warning:?Unable?to?save?modified?path?to?file.‘)
????msg?=?sprintf(‘To?have?%s?on?the?path?for?future?MATLAB?sessions?you?will?need?to?save?the?path?to?a?different?file.‘?addon_name);
????disp(msg)
end

%?rebuild?current?path?with?newly?added?paths
path(current_path?path);

%?restore?duplicate?path?warning
warning(w_state);

%?Refresh?docroot?in?case?new?doc?directories?were?added
docroot(docroot);

%?Make?changes?for?doc?center?to?work
destination?=?com.mathworks.install.command.doc.BuildSh

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????3343??2016-04-27?14:16??install_addon.m
?????目錄???????????0??2016-05-03?10:47??smlink.r2014a.win64\
?????目錄???????????0??2014-02-28?00:26??smlink.r2014a.win64\bin\
?????目錄???????????0??2014-02-28?00:26??smlink.r2014a.win64\bin\registry\
?????文件????????1339??2014-01-29?23:38??smlink.r2014a.win64\bin\registry\pmi_mli.xml
?????目錄???????????0??2014-02-28?00:26??smlink.r2014a.win64\bin\win64\
?????文件??????641536??2014-01-30?11:54??smlink.r2014a.win64\bin\win64\cl_inventor2sm.dll
?????文件?????1800704??2014-01-30?12:09??smlink.r2014a.win64\bin\win64\cl_proe2sm.dll
?????文件??????476672??2014-02-21?12:02??smlink.r2014a.win64\bin\win64\cl_sldwks2sm.dll
?????文件???????49664??2014-01-30?11:07??smlink.r2014a.win64\bin\win64\pmi_api.dll
?????文件??????231936??2014-01-30?11:00??smlink.r2014a.win64\bin\win64\pmi_csts2connections.dll
?????文件??????261120??2014-01-30?11:21??smlink.r2014a.win64\bin\win64\pmi_mli.dll
?????文件??????752128??2014-01-30?11:06??smlink.r2014a.win64\bin\win64\pmi_toolkit.dll
?????目錄???????????0??2014-02-28?00:26??smlink.r2014a.win64\help\
?????目錄???????????0??2014-02-28?00:26??smlink.r2014a.win64\help\physmod\
?????目錄???????????0??2014-02-28?00:26??smlink.r2014a.win64\help\physmod\smlink\
?????文件??????????85??2014-01-21?11:56??smlink.r2014a.win64\help\physmod\smlink\b_next.gif
?????文件??????????85??2014-01-21?11:56??smlink.r2014a.win64\help\physmod\smlink\b_prev.gif
?????文件???????13746??2014-01-21?11:55??smlink.r2014a.win64\help\physmod\smlink\cad-export-1.html
?????文件???????14200??2014-01-21?11:55??smlink.r2014a.win64\help\physmod\smlink\cad-export-2.html
?????文件???????14205??2014-01-21?11:55??smlink.r2014a.win64\help\physmod\smlink\cad-export-3.html
?????文件???????14892??2014-01-21?11:55??smlink.r2014a.win64\help\physmod\smlink\cad-export-from-autodesk-inventor.html
?????文件???????15265??2014-01-21?11:55??smlink.r2014a.win64\help\physmod\smlink\cad-export-from-creo-proengineer.html
?????文件???????16112??2014-01-21?11:55??smlink.r2014a.win64\help\physmod\smlink\cad-export-from-solidworks.html
?????文件???????33149??2014-01-21?11:55??smlink.r2014a.win64\help\physmod\smlink\custom-cad-export-1.html
?????文件??????????30??2014-01-21?11:55??smlink.r2014a.win64\help\physmod\smlink\doccenter.properties
?????文件???????36369??2014-01-21?11:55??smlink.r2014a.win64\help\physmod\smlink\doccentertoc.html
?????文件???????36074??2014-01-21?11:56??smlink.r2014a.win64\help\physmod\smlink\docscripts.js
?????文件??????????80??2014-01-21?11:56??smlink.r2014a.win64\help\physmod\smlink\docstyle.css
?????目錄???????????0??2014-02-28?00:26??smlink.r2014a.win64\help\physmod\smlink\examples\
?????文件??????????85??2014-01-18?07:50??smlink.r2014a.win64\help\physmod\smlink\examples\b_next.gif
............此處省略498個文件信息

評論

共有 條評論