BTW, in this case, the reason I want this check is to know that I can use the function matlab.lang.makeUniqueStrings. If there were a robust, supported way to check for the availability of this function, I'd use it instead of testing that the current MATLAB is recent enough. Unfortunately, there doesn't seem to be such a check: exist returns false to every variant I can come up for the name of this function. Again, I can think of fragile hacks to mimic a proper test (e.g. which('matlab.lang.makeUniqueStrings')), but they're hardly better than the version-testing hacks I alluded to above.
The best solution I have found is to run the command using matlab.lang.makeUniqueStrings within a try-catch block. This is still a fragile hack, because MATLAB does not offer a robust, built-in way to catch specific exceptions!
Alternatively, you can robustly test for the existence of matlab.lang.makeUniqueStrings. Firstly, use m = meta.package.fromName('matlab.lang') to retrieve a meta.package object referring to the package. If m is empty, the package does not exist. Assuming m is not empty, check the FunctionList property of m to see whether makeUniqueStrings is present. (There's also a ClassList property as well).
Several GNU/Linux distributions have official packages for Dynare:
MATLAB is a high performance interactive software package for scientificand engineering computation. MATLAB integrates numerical analysis,matrix computation, signal processing and graphics in an easy-to-useenvironment where problems and solutions are expressed just as they arewritten mathematically. To start MATLAB on our central Linux system just type matlab in a terminal window or find the Matlab icon in the applications panel (use the button).
Matlab has its own text-only help system (type help from the matlab prompt) and WWW-based documentation (seethe online documentation or type doc). There are some video tutorials you can play (see the Demos sections, especially "Desktop Tools and Development Environment").Use matlabdoc -a to list documentation files available in thealternative (PDF) format. "matlabdoc -a newfeat", for example,will display the 'New Features' document.
Matlab can also be used from C++ and fortran as a library of maths and graphics routines. Also C++ and fortran code can be called from within matlab.AnInterface Guide is online. Current examples are in /usr/local/apps/matlab/matlabR2007a/extern/examples/ on our Linux servers. Local users using these files on the linux serversshould note that some local configuring may be required - see Matlab: configuring mex page.
The output headers structure must be set by the user in the Matlab script. Once the header is set, the Matlab Scripting box is able to get this information from the matlab structure and construct the corresponding OpenViBE header.
First step is to configure the Matlab Scripting box. You need to set your local Matlab directory and the working directory to match your local installation of Matlab and OpenViBE. The working directory is [openvibe]/share/openvibe/scenarios/box-tutorials/matlab/. It must be an absolute path. The three matlab functions are in this directory.
If you have Matlabs of several bitness or versions installed in Windows, the engOpen() call can return one of them, possibly based on registry. To specify which one you want to use, open the administration command prompt, cd to the folder where matlab.exe is located, and run matlab /regserver". That may fix the problem.
The simplest way to check the state of the Matlab Engine is by looking at the matlab window running in background. When opening the engine, Matlab launch a specific window called Matlab Command Window. This window is a basic Matlab interpreter in which you can type Matlab commands. When closing the Engine, this window should be closed automatically. If such window is still alive when there is no Matlab scenario running in the OpenViBE Designer, close it manually before playing such scenario.
I have followed your steps and successfully installed MatLab via SCCM. Thanks for all your work on this. I do, however, have an issue with app detection after the installation is complete. The software always shows as failed in software center despite getting a return code of 0. Appenforce.log says that the application was not discovered. I have tried using the folder for detection per your example as well as matlab.exe exists and matlab.exe version equals blah blah blah. I was wondering if you had any pointers for getting this application to show as installed correctly. Thanks!!
aa06259810