A blog to help electrical engineers and students to learn electrical engineering topics. Basic Electrical Engineering, Power Systems, Electrical Machines, tec.. Now special course on MATLAB for Beginners.

Class

Class

Sunday, January 15, 2017

User Defined Functions in MATLAB Part-4



Function Function, Local Function, and Private Function Function Function A MATLAB function that accepts another function as an input is called a function function. Function handles are used for passing functions to function functions. Syntax for function function is same as simple functions, but one or more input arguments will be function handles. Local function - Sub Function Multiple functions within one function file is called local...

Wednesday, January 4, 2017

Anonymous and Inline Functions in MATLAB



Anonymous Functions MATLAB's anonymous functions provide an easy way to specify a function. An anonymous function is a function defined without using a separate function file. It is a MATLAB feature that lets you define a mathematical expression of one or more inputs and either assign that expression to a function. This method is good for relatively simple functions that will not be used that often and that can be written in a single...