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.
- Predefined
- 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.
- Set path using Matlab File Menu option (Manual process).
- 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.
- Go to File Menu
- Choose set-Path.
- Then click "AddFolder".
- 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.
No comments:
Post a Comment