Hi there,
I am learning Matlab and am new to the concept of function handles. I want to see how function handles make the code simpler thats why I want to see examples of alternatives for function handles. For example given this code:
sine = @(t) sin( pi*t);
To my understanding, (t) is where any input goes which eventually evaluates sin(pi*t). But what is the difference if I were to just have a variable t and change it everytime and just have sine = sin(pi*t) where t is a seperate variable. So I just want to know the reasoning behind using function handles thats all.
thanks
Best Answer