About 407,000 results
Open links in new tab
  1. Anonymous Functions - MATLAB & Simulink - MathWorks

    Many MATLAB ® functions accept function handles as inputs so that you can evaluate functions over a range of values. You can create handles either for anonymous functions or for functions in program …

  2. at symbol - Create anonymous functions and function handles, call ...

    The at symbol (@) creates handles to anonymous and named functions, and is also used to call superclass methods from within a subclass. For instance, f = @(x,y) x+y creates an anonymous …

  3. Tips and Tricks - Combining Functions Using Anonymous Functions ...

    Tips and Tricks - Combining Functions Using Anonymous Functions By Loren Shure, MathWorks Anonymous functions let you create simple functions as variables without having to store the …

  4. What are anonymous functions in MATLAB, and how can they be

    Jul 31, 2023 · What are anonymous functions in MATLAB, and how can they be used to simplify code? Provide an example where an anonymous function is used effectively.

  5. Dynamic Function Creation with Anonymous and Nested Functions

    The MATLAB language has function handles that let you pass functions as parameters to routines, but they needed to be associated with a function definition in an M-file and evaluated with the feval …

  6. function_handle - Handle to function - MATLAB - MathWorks

    For example, create a handle to the sin function, and then use fminbnd to find the value of x that minimizes sin (x) in the range from 0 to 2 π : f = @sin; m = fminbnd(f,0,2*pi); Anonymous function …

  7. Types of Functions - MATLAB & Simulink - MathWorks

    There are several types of functions available with MATLAB, including local functions, nested functions, private functions, and anonymous functions.

  8. Code Generation for Anonymous Functions - MATLAB & Simulink

    Anonymous functions are useful for creating a function handle to pass to a MATLAB function that evaluates an expression over a range of values. For example, this MATLAB code uses an …

  9. Is it possible to write several statements into an anonymous function ...

    Dec 1, 2023 · The easiest way to get multiple statements into an anonymous function, is by using the eval function (or evalin). This is not fast nor space saving, but it could be useful in cases where your …

  10. matlabFunction - Convert symbolic expression to function handle or …

    Convert Symbolic Function to Anonymous Function Create a symbolic function and convert it to a MATLAB function with the handle ht.