Matlab 2008b

0 views
Skip to first unread message

Desiderato Merriwether

unread,
Aug 4, 2024, 1:39:05 PM8/4/24
to lyndkutonwai
Mym file was compiled by MATLAB R2008b. When I distributed it to others, their PC seem to lack certain DLL (mclmcrrt79.dll). Thus, I was looking for MCR7.9 but couldn't find any official copy. I did find some on the web: MCR7.9 download but am not sure whether it is safe to be installed. Is it OK to use this copy or is there any official MCR7.9 available?

Versions of the MCR prior to R2012a are not distributed in the same way by MathWorks, and should be distributed by the developer of the application along with the compiled component directly to end users. If you are the developer, you should distribute it along with the component - specifically, you should send them the MCR installer (you have this - it's in \toolbox\compiler\deploy\, where is your platform).


In fact, in R2012a there was a license-related change: for versions prior to that, you're not actually allowed to make the MCR (or the installer) available as public download (so the people who are making it available at the SourceForge site you link to are, strictly speaking, in breach of the license).


One other confusion may be causing you difficulty: R2008b is MATLAB version 7.7. MATLAB version 7.9 is R2009b. You need to make sure that you use the right version of the MCR for the version of MATLAB you used to compile.


For reference, I solved the problem related to "My Own Exception: Fatal error finding symbol mxCalcSingleSubscript_700 in D:\XYZ\libmx.dll Error:" It was done by sending libmx.dll to the user. The file is stored at \MATLAB\bin\win32\


I need to compute the steady state of a model outside dynare to give a correct value for same parameters.

In the previous version of Matlab I could define a function that, set as global the value of the parameters read in Dynare, could compute the steady state.

However, with the new version of matlab, if I declare parameters as global inside a function, those parameters get as initial value an empty matrix.

In other words, in the previous of matlab declaring some parameters as global inside a function did not alter the value that those parameters were assigned in Dynare. In the new version of Matlab, when you declare a parameter as a global variable, its value is reset to an empty matrix.


Your problem is (very) weird. I also use matlab 2008b and I think I do not have this problem. I tried with a simple example: a function called f1.m where I give a value to a global variable x and a script called f2.m where I call f1 and print the value of x.


About the example you posted, the problem is that if you comment the line global x in the main file, then with R2008b the code will crush because you cannot define anymore a global variable just in a function and not in the main file.


In the previous version of matlab, even though you define a global variable inside a function, the program will reset also the variables in the main code as global, although not changing its value. In the new version, it assigns to it an empty matrix.


I have a similar problem with the software. I am currently working with the DEWE800 with no programs installed except DEWESoft 7. When I try to export a data file (size: 11GB) to Matlab the error message "Not enough memory to perform export of data to matlab" occurs. The data file contains 15 channels but even if I try to export only one of these channels I get the same error. Do you have any idea how to solve this problem?


Matlab version: The latest version of EEGLAB runs on Matlab 7.6 (2008b) or later under any operating system (Linux/Unix, Windows, Mac OSX). For earlier Matlab version, download legacy version EEGLAB v4.3 which will run on Matlab 5.3. For Mac OSX, older versions of Matlab might not be compatible with the operating system, so you might have to install the latest Matlab version. EEGLAB extensions (in particular BCILAB and SIFT) also require Matlab 7.6 or later. Note that all EEGLAB signal processing functions also runs on the free Matlab clone Octave although graphics cannot be displayed (this is nethertheless useful for high performance computing application - see the EEGLAB wiki for more details).


Memory requirements: Using multi-core 64-bit processors with large amounts of RAM may be essential for analyzing large datasets -- 8 Gb or more RAM is recommended (also see the EEGLAB wiki tutorial for tips on minimizing memory usage). Linux is to be preferred as an environment for processing EEG data using EEGLAB, mostly because of better memory management of Matlab under Linux (if using Linux, choose Fedora over Ubuntu as there are sometimes minor graphics problem with how Matlab handles OpenGL under Ubuntu).


Additional Matlab toolboxes: EEGLAB requires no additional toolboxes. However, some toolboxes are recommended. By order of importance, Signal Processing toolbox: although EEGLAB incorporates functions to replace functions it uses from this toolbox when necessary (e.g., for filtering and power spectra computation), they are not as efficient as the toolbox Matlab functions. This toolbox is also required by some EEGLAB extensions such as SIFT. This is probably the most important toolbox to have. Statistics toolbox: this toolbox is required by some EEGLAB extensions (such as Fieldtrip and SIFT). This toolbox also contains a large number of functions useful for the advanced programmer to compute statistics and cross-validation. Optimization toolbox: another recommended toolbox used by some EEGLAB extensions. This toolbox contains the powerful fminsearch function and derivative. Although Matlab now has this function by default in its core distribution, the optimization toolbox allows to perform finer tuning of its parameters. Image processing toolbox: this toolbox is required by some EEGLAB extensions (such as Fieldtrip). Figure post processing: After figures are exported in the postscript vector format from Matlab/EEGLAB, a postscript editor is usually necessary to fine tune them for publication.


With a recent version of Matlab (2008b used for development), the best way to use the package is to open Matlab, navigate to the matlab directory, and then execute the following commands to solve the network alignment problem for Figure 1.


Use the python program experiments/bioinfo/convert_isorank_data.py to generate dmela-scere.smat dmela.smat and scere.smat which areL, A, and B, respectively. The program readSMAT.m will load these files into Matlab.


I am facing similar problems as well. subs function in 2008a, 2007b have bugs. 'syms' function hangs or takes a long time is a reported bug yet to be fixed. Somewhere I cam across that the mupad matlab interface is not well written.I also need some solution to MATLAB being slow for symbolic maths. Can we get some input on this issue




If you have a copy of Maple, you can still use it to do symbolic work with MATLAB. They have a toolbox called the Maple Toolbox for MATLAB that lets you use the 2 softwares together. I downloaded it free from the Maplesoft website. All the work I did with the Maple version of the symbolic toolbox works too.




This tutorial covers a number of topics on the Matlabprogramming language and environment, focussing on the features likely to be of use to people performing general purpose programming as well as data analysis/ statistics/ machine learning. In particular, it covers basic features as well as some recent additions to the language, such as bsxfun(added 2007a), the new object oriented programminginterface (added 2008a), the containers.maphash table (added 2008b), etc. Many matlab programmers do not know about these useful features since they are buried deep inside the official documentation.


All the code for the examples in this tutorial is embedded directly into the document, allowing you to easily try it out for yourself as you work your way through the tutorial. Most of the code will work on all versions of matlab released since 2004 (version 7), although some examples require more recent versions.


We have grouped the topics by importance: 'basic' topics are essential to all users, 'intermediate' topics are useful to know about once you have gained some experience, and 'advanced' topics are for experts only and/or of limited interest.


It is not necessary to remove the existing setup for any earler version of Matlab. More than one version can appear, for example, in your 'Programs' menu. This version requires about 1 GB of local disk space. You can check out the extensive R2009a Release Notes for this version. Matlab 2008b can be downloaded from the Xweb to your PC using the instructions in this document. You can then run Matlab 2008b using one of several possible licenses. You can either use you own individual or group license, supplied to you by your Matlab license administrator, or you can Use one of the 8 floating licenses available to anyone at SLAC, to the extent such a license is still available for checking out. It is also possible to set up your license environment to use both your own license for the main Matlab application and your own toolboxes, together with the floating licenses for toolboxes available with the floating licenses. This requires a second installation of Matlab using the floating license information. In such a scenario, in which you want to use both types of licenses, there are additional steps required following each of the two installations, described below in the section Setting up dual-license mode Setting up a client PC This procedure requires administrator privileges on your machine. Create a NEW folder in "C:\Program Files" and name it MATLAB Create a NEW folder in "C:\Program Files\MATLAB" and name it R2008b Copy "licenses" folder in "V:\CAE\Matlab\R2009a\license.dat" folder to "C:\Program Files\MATLAB\R2009a" folder Begin by going to the Xweb webpage: Find the entry in the list for Mathworks Matlab 2009a. Click on the "Click to Install" button to the right. On the next page, click on the "I Agree" to license conditions button at the bottom of the page. In the following menu, click at the top on "Install", associated with "Step 1". On the next "File Download" page, you can choose either "Run" or "Save". The first choice might be easiest. It will download the installation files, automatically proceed to unzip the dowloaded installation files and then invoke the vendor installation program. The "Save" option only downloads the installation files. You would then have to go to the location where you saved the downloaded files and doubleclick on the setup.exe file, which would initiate the install. On the next security warning page, click again on "Run", in case that is what you chose in the previous step. After the files have been downloaded, and sometimes following a wait of several minutes with no window appearing or other indication of anything happening, a window finally does appear, indicating that the files are being unzipped (if you selected 'run' previously). In the 'Welcome to the MathWorks Installer' menu, select the default 'Install' option. In the next menu, along with your usual Name and Company info, you are prompted to enter the so-called installation key, which, for a group license, you should obtain from your local Matlab administrator or from your Matworks login account. For an individual Matlab license of your own, Mathworks should have sent you your license, a file which will include the installation key. Or, you can use the following installation key for using the floating licenses: Installation key# 27299-24251-23474-22687-10775 If the activation is requested, please use this one for FLOATING LICENSES ONLY:2551-59116-99754-72456-42290)

If you referred previously to the installation key for the floating license, the next screen "License file" prompts you to specify the license file. The license file you need to point here is

V:\CAE\Matlab\R2009a\license.dat

Otherwise, if you are using your own installation key, the license file will not be prompted for. On the following screen "License Agreement" check the box by "Yes". Next is the 'Installation Type' menu, in which you are presented with the choices 'Typical' and 'Custom'. 'Custom' allows you to remove items to install from a subsequent list. The only items on the list are those for which the installation key you are using has allocated to you. 'Typical' installation bypasses the list of licensed features and installs all of the (licensed) features. Thus, 'typical' leads to the simplest procedure. The toolboxes associated with the above installation key, for concurrent (floating) licenses are: MATLAB

Simulink

Control System Toolbox

Image Processing Toolbox

MATLAB Compiler

Optimization Toolbox

Partial Differential Equation Toolbox

Signal Processing Toolbox

Simulink Control Design

System Identification Toolbox So if you would like all of these toolboxes installed on your PC, you can 'choose' 'Typical" (installation). If you want to pick and choose from among the list above, choose "Custom". If you want only the toolboxes (and of course the main Matlab product) that are associated with your own installation key for your group or individual license, then you can reference just your own installation key and not the one given above.

Again, the installation key number associated with your group you can get from the group administrator. If you have trouble with that process, you can also contact Kay Ganapathi for this information.

The installation key number associated with your individual Matlab license would normally be emailed to you by the Mathworks as part of your license purchase. In the 'Folder Selection' menu, you can "Browse" to the local Folder where you want to install Matlab. The next 'Confirmation' menu lists the features you selected. Clicking on 'install' allows the installation to commence. Only those, therefore, can be installed. You may want to install other toolboxes associated with other licenses, such as a group license you may be associated with. In that case you can repeat this installation procedure using your other installation key number. Then only items associated with that license will be listed. If you choose "Custom" rather than "Typical" install, you can select just the toolboxes you have not yet installed. Near completion of the installation several pop-up "File Extension Warning" windows appear asking whether you want to associate certain file extensions with the Matlab application. You can respond according to your preference. At the completion of the installation, in the "Setup Complete" window, click on the "Finish" button. This version of Matlab on the Windows XP platform has a bug which has to be worked around as follows:

In order to avoid the Matlab session immediately aborting after it's invoked, add a special (system) environment variable to your system, called MATLAB_RESERVE_LO, set to the value 0. Although the install process does not prompt for the text to be provided for the Programs Folder entry, the default turns out to be just "MATLAB". One level deeper shows the actual version: R2009a. You can change this label to whatever you like by manually editing the entry in the "All Users" Programs Folder.

This completes the installation of Matlab. Starting with this version, if you are using your own installation key, you should no longer set your LM_LICENSE_FILE environment variable to point to the remote central license server, as we have done up till now. You can do this, however, if you are interested in running versions of Matlab prior to 2009a, or are using the central floating license to run 2008b. Using your own instllation key, starting with 2009a, the license is stored on your local machine, and it can also be used to run earlier Matlab versions. If you used your own installation key but would like to also use additional Matlab toolboxes available with the floating licenses, you would go through a second, similar installation process using the installation key for these floating licenses. Before beginning the second installation, it is important to temporarily save the license file that was installed during the first installation step. The process is described in the next section. Setting up dual-license mode Dual-license mode allows you to run the main Matlab application and any toolboxes belonging to your own license using your own license as well as to use additional toolboxes available with the floating licenses, as listed above, using the floating licenses. The first step consists of installing Matlab 2009a from the Xweb as described above, using the installation key for your own individual or group license. Before repeating the installation using the installation key for the floating licenses, it is important to first save the 'license.dat'or 'license.lic' file, in Folder (top-level Matlab Folder)\bin\win32, produced by the first installation step. Now you can repeat the installation using the installation key above, for the floating licenses. During the second installation, you won't need to re-install the main Matlab program, nor any toolboxes you already installed during the first installation. At the point where the installation process prompts you to select the toolboxes from a list, you only need to select the subset of toolboxes you want to use. The second installation again produces a license.dat file, which you can simply delete, as it will be replaced with a fixed file. In fact, copy file V:\CAE\Matlab\R2009a\license.dat to your local Folder (top-level Matlab Folder)\bin\win32. Now copy back the saved former license.dat file produced from the first installation to the same Folder (top-level Matlab Folder)\bin\win32. You will now be able to use your individual or group license for Matlab and toolboxes belonging to your license, as well as other toolboxes using the floating license, to the extent that a license is available. This completes the client PC installation process. [Disclaimers, Copyright, and Other Fine Print ]

3a8082e126
Reply all
Reply to author
Forward
0 new messages