Current location - Training Enrollment Network - Mathematics courses - How to install a new toolbox in Matlab
How to install a new toolbox in Matlab
Interested users can directly check the help of Matlab, where they can get the most direct answer, but they need some English. There are many ways to add a toolbox, all for the same purpose. Add the path of toolbox to the search path of Matlab. Here is a simple operation. Take the installation of mathmodl (toolbox) as an example to illustrate. A. extract the toolbox to be installed into $MatlabRoot\toolbox (in fact, any path is ok, just for the convenience of management, we usually install it here). $MatlabRoot is your Matlab installation path. You can enter Matlab root acquisition (1) in MATLAB and enter the following contents (you can directly use resource management at this time). & gtmatlabrootans = D:\ Program Files \ MATLAB \ r 2008 a & gt; > winopen (ans) copy (2) will automatically jump to the installation directory of Matlab, and double-click the toolbox folder in the open directory (3) to copy the mathmodl toolbox into the toolbox. B add the path of mathmodl to the Matlab search path (you can use the Matlab command line or the Matlab menu to operate. For convenience, we use the second scheme here. (2) When browsing files, select the installation path $MatlabRoot/toolbox/mathmodl just now, and click OK. (3) Return to the path setting dialog box at this time, and click the Save button in the lower left corner (remember to save). At this point, the toolbox has been installed. Click Close to close the dialog box. C. The newly installed toolbox can be used under test. Enter the following contents in Matlab > & gtMathmodl% Enter the name of the toolbox, and the description of the toolbox will generally be returned at this time, that is, enter the following contents in the content.m under the Mathmodl path at the command line, and all files under the mathmodl path will be returned at this time >; & gt What mathmodl% and then go to mathmodl to find a name different from that in Matlab, such as DYNPROG. M, and enter >; & gt which dynprog.md: \ my documents \ Matlab \ dynprog.m copy the code D. Toolbox updates the cache, otherwise a warning will be given every time MATLAB is started (1) file-> preferences-> General-> Select Enable Toolbox Path Cache-> Click Update Toolbox Path Cache (2) to complete the above operation, and then close the Preferences dialog box. (3) At this point, the toolbox is installed.