#genericfunction
Explore tagged Tumblr posts
kpoints · 6 years ago
Text
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
0 notes