Здравствуйте. Установил программу COMSOL 4.2,в ней есть инструмент синхронизации с MATLAB. При запуске синхронизатора в MATLAB (6.5.0.1) выскакивает ошибка
Код:
Starting the COMSOL Multiphysics LiveLink(TM) for MATLAB(R).
Checking for additional startup script (comsolstartup.m)
in: C:\Documents and Settings\1
Checking for startup script on the MATLAB path
??? Error using ==> desktop
Too many input arguments.
Error in ==> E:\COMSOL42\mli\startup\startup.m
On line 37 ==> if desktop('-inuse')
Error in ==> E:\MATLAB6p5\toolbox\local\matlabrc.m
On line 199 ==> startup
>> javaaddpath('E:\COMSOL42\plugins\com.comsol.mems_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.emf.cdo.common_2.0.2.v20100615-0645-patched.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.applapi_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.emf.ecore.xmi_2.5.0.v200906151043.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.equinox.common_3.6.0.v20100503.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.compat35a_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.acdc_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.transport_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.osgi.services_3.2.100.v20100503.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.resources_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.cefs_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.heat_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.post_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.solver_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.particle_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.loader_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.equinox.supplement_1.3.0.v20100503.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.geommesh_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.solid_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.migration_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.net4j.util_2.0.1.v20100116-1932.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.equinox.registry_3.5.0.v20100503.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.maxwell_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.nativejni_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.multiphysics_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.reaction_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.nativemph_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.clientserver_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.chem_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.emf.cdo_2.0.2.v20100615-0645.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.plasma_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.emf.common_2.5.0.v200906151043.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.batch_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\truezip-6.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.net4j.tcp_2.0.1.v20090627-1154.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.osgi_3.6.2.R36x_v20110210.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.graphics_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.rf_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.net4j_2.0.1.v20100116-1932.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.equinox.app_1.3.1.R36x_v20100803.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.systemutils_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.print_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.capeopen_1.0.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.aco_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.mph_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.emf.ecore_2.5.0.v200906151043.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.sme_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.bfc_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.microfluidics_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.physics_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.ssf_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.core_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\org.eclipse.emf_2.5.0.v200906151043.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.report_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.nativeutil_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.opt_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.util_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.model_1.0.0.jar');javaaddpath('E:\COMSOL42\plugins\com.comsol.mli_1.0.0.jar');path('E:\COMSOL42\mli',path);java.lang.System.setProperty('cs.root','E:\COMSOL42');java.lang.System.setProperty('cs.prefsdir','C:\Documents and Settings\1\.comsol\v42');com.comsol.model.util.ModelUtil.connect('localhost',2036);import('com.comsol.model.*');import('com.comsol.model.util.*');
??? Undefined function or variable 'javaaddpath'.
Как её исправить? Возможно, это связано с тем, что версия MATLAB достаточно старая, и нужно попробовать с более новой версией. Помогите, пожалуйста, разобраться.