资源简介
Matlab Connector 1.2 的安装包,使用Matlab Mobile必备,在官网需要license才能下载,放在这里供破解版用户下载
代码片段和文件信息
function install_connector()
%INSTALL_CONNECTOR Install the MATLAB Connector.
% INSTALL_CONNECTOR Install the files for the MATLAB Connector into your MATLAB installation.
% Copyright 2010-2011 The MathWorks Inc.
% turn off connector if running
try
com.mathworks.util.ClassLoaderBridge.findClass(‘com.mathworks.matlabserver.embeddedwebserver.JettyWebServer‘);
running = com.mathworks.matlabserver.embeddedwebserver.JettyWebServer.isRunning();
if running
connector(‘off‘);
clear(‘java‘);
end
catch e %#ok
end
% Determine location of this file
currentFile = mfilename(‘fullpath‘);
[currentDir currentscriptName] = fileparts(currentFile);
% Define variables used in the script
productName = ‘MATLAB Connector‘;
licenseAgreementFile = fullfile(currentDir ‘MATLAB_Connector_SLA.txt‘);
zip_file = ‘MATLABconnector.zip‘;
toolboxStr = ‘toolbox‘;
connectorStr = ‘connector‘;
connectorRoot = fullfile(matlabroot toolboxStr connectorStr);
connectorHelpFile = fullfile(connectorRoot connectorStr ‘html‘ ‘bsjg133.html‘);
helpFileStr = strcat(‘file:///‘ connectorHelpFile);
% make sure user is using at least MATLAB R2009b
if verLessThan(‘matlab‘ ‘7.9‘)
error(‘%s does not run on MATLAB versions earlier than R2009b.‘ productName);
end
% check if the jvm is available
if (~usejava(‘jvm‘))
error(‘%s requires Java to run.‘ currentscriptName)
end
% check if archive exists
if (exist(zip_file ‘file‘) ~= 2)
error(‘Archive %s does not exist.\nInstallation failed.‘ zip_file)
end
% Display License Agreement
if (exist(licenseAgreementFile ‘file‘) ~= 2)
error(‘The %s license agreement file does not exist on your machine.\nThis is an invalid installation.‘ productName)
end
type(licenseAgreementFile)
reply = input(‘Do you accept this license agreement? Y/N [N]: ‘ ‘s‘);
msg = sprintf(‘You must accept the license agreement if you wish to continue installing. \n...Exiting the %s Installation.‘ productName);
if(isempty(regexpi(reply‘^(y|yes)$‘)))
disp(msg)
return
end
doinstall
install_connector_path_update(false);
rehash toolboxcache
% Wrap-up
msg = sprintf(‘\nInstallation of %s is complete.\n‘ productName);
disp(msg)
msg = sprintf(‘To start the connector type \“connector on\“.‘);
disp(msg)
msg = sprintf(‘\nFor more information see the Setup and User‘‘s Guide.‘ helpFileStr);
disp(msg)
end
function doinstall
productName = ‘MATLAB Connector‘;
% check if the user can write to matlabroot
tempFileInMLRoot = tempname(matlabroot);
fid = fopen(tempFileInMLRoot ‘w‘);
if (fid == -1)
failed = true;
if ispc
try
proc = System.Diagnostics.Process;
% EXE to run
proc.StartInfo.FileName = fullfile(matlabroot‘bin‘‘matlab‘);
% Arguments to the EXE
proc.StartInfo.Arguments = ‘/wait /noslpash /nodesktop /r install_connector_helperexit‘;
% Run-as admin
proc.Star
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4370919 2011-01-28 10:29 MATLABconnector.zip
文件 1030 2011-01-28 10:27 install_connector_path_update.m
文件 4001 2011-01-28 10:27 install_connector.m
文件 1129 2011-01-28 10:27 install_connector_helper.m
文件 7741 2011-01-28 10:27 MATLAB_Connector_SLA.txt
- 上一篇:2015b版Matlab神经网络工具箱用户手册
- 下一篇:猫群算法matlab实现
相关资源
- 猫群算法matlab实现
- 2015b版Matlab神经网络工具箱用户手册
- 2015b版Matlab并行计算工具箱手册
- 2015aMatlab神经网络工具箱用户手册
- MATLAB实现双目校准
- Matlab图像处理详解-源代码
- 基于Matlab的地图投影程序设计
- matlab的最优潮流计算程序
- matlabGUI界面编程
- 指纹识别系统matlab源代码
- 模式识别课程作业 matlab与libsvm环境
- 【MATLAB GUI设计学习手记】源代码116
-
2DPSK调制解调simuli
nk仿真及matlab程序 - MATLAB 彩色图像分割
- matlab语音合成详细版
- 邻域粗糙集matlab代码。带论文
- SURF算法代码 matlab
- 降维工具箱
- 神经网络29个案例及代码
- GPU加速matlab
- 基于颜色的图像检索 matlab源代码
-
matlab通过targetli
nk自动生成代码 - matlab Kriging工具箱
- 精通Matlab最优化计算源代码114682
- libsvm工具包-Matlab
- MATLAB Programming for Engineers 完整课件
- 二维齐次热传导方程的ADI格式含MATL
- 二维热传导方程有限差分法的MATLAB实
- 国外计算机科学经典教材 MATLAB科学计
- MatLab中用马氏距离法对TM图像进行分类
评论
共有 条评论