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.

List of Neural Networks in Matlab | Type of Neural Networks on Matlab with example




In Neural Network is one of most Interesting concept in Artificial Intelligence.Now Neural Network works support Artificial operation on more research area's.It support prediction, classification ,clustering and more research area concepts.Neural Network more than 7 type of their in research area.here we give some Neural Network types and related to the code on Matlab.
In Normal network contain three Layers.
  1. Input
  2. Hidden
  3. output
These above layers are most common for all Neural Networks.In below We just list out the default Matlab Neural Networks and there function names.Please note it.
newelm - "Elman Back Propagation" Neural network
newff - Feed Forward Back Propagation network
newcf - Trainable cascade-forward Back propagation network
newrb - Radial basis network
newrbe - Exact radial basis network
newgrnn - Generalized regression neural network
newpnn - Probabilistic neural network

In above are Matlab predefined Neural Networks.This above network tested using sim function. used to test all network.

Multiple Images Shows In One Figure Window | Montage Matlab example code

Here We discuss with matlab motage function.This function used to displays more then two images shows on Matlab Figure window.This motage function displays matlab 4D vector image variable on figure window.In below we give some example for this function operations.
Code:

clc
clear all
close all
warning off

img1 = imresize(imread('images\007.JPG'),[512 512]);
img2 = imresize(imread('images\18MO.JPG'),[512 512]);
img3 = imresize(imread('images\1984B.JPG'),[512 512]);
img4 = imresize(imread('images\280.jpg'),[512 512]);

combine_img(:,:,:,1) = img1;
combine_img(:,:,:,2) = img2;
combine_img(:,:,:,3) = img3;
combine_img(:,:,:,4) = img4;

montage(combine_img);

In above script explain montage operations.Here we read 4 images and generate one 4 dimensional array.This array read 4 images and store it.Finally display using that array using montage function.This out put as follows.



Related Search : More than images shows on matlab figure, Montage Matlab example ,Montage Matlab example source code ,combine more than images on figure window ,| Simple Matlab example source code and Tutorial
Related Posts Plugin for WordPress, Blogger...