Passing Functions as Parameters to another Function
Passing Functions as Parameters to another Function
You could develop custom function for every new equation but there is a better alternative – design a generic function and pass your particular equation as an argument. Sounds great, right? In Matlab these functions have special name: function functions.
Before we describe how they work let me first introduce you to anonymous functions.
Anonymous Functions
In short, when you create…
View On WordPress














