Pass Function to Another Function - MATLAB & Simulink
www.mathworks.com › help › matlabq1 = 3.0472. Similarly, to find the integral of the sin function and the exp function, pass handles to those functions to integral. q2 = integral (@sin,a,b) q2 = 0.7163. q3 = integral (@exp,a,b) q3 = 147.4132. Also, you can pass a handle to an anonymous function to function functions. An anonymous function is a one-line expression-based MATLAB ...