Thursday 8 December 2011

How to add toolbox in matlab program | How to set toolboxs in matlab

In matlab contain large amount of toolboxes available on Internet.Toolbox like Packages.it contain amount of method to provide particular operation.Matlab toolboxes are two type.
  1. Predefined
  2. User-defined
Predefined - This toolboxes are inbuilt on matlab.
user-defined - This toolboxes are user to making tool boxes ,aim for particular operational process.
In predefined toolboxes function directly load on matlab.But user defined toolboxes not default loaded.we invoke these toolboxes on matlab.This process is called add-path.In predefined toolboxes to invoke two steps.
  1. Set path using Matlab File Menu option (Manual process).
  2. User set the path using programming command as "addpath()" (using coding).
In below we explain above two notation steps to add path on matlab.
We use mytoolbox as mathematical toolbox.It contain addition, multiplication, division, subtraction functions.
Then we set the path using matlab windows.
  1. Go to File Menu
  2. Choose set-Path.
  3. Then click "AddFolder".
  4. Then choose the toolbox folder then save and close.
Then go-to command prompt the use to call the toolbox functions, then output shows on matlab.Following scree-shot explain above notations.









In below we explain set path on toolbox using add path () function on matlab predefined function.
>> addpath('C:\Documents and Settings\user1\My Documents\Downloads\Armada_v_1_4 (1)\mytoolbox');
>> c = multiplication(10,14)
c =

140

In above we set the path to "mytoolbox".Then call the function as multiplication on that toolbox.

Kindly Bookmark and Share it:

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...