About 357,000 results
Open links in new tab
  1. function - Declare function name, inputs, and outputs - MATLAB

    Function with Multiple Outputs Define a function in a file named stat.m that returns the mean and standard deviation of an input vector.

  2. Create Functions in Files - MATLAB & Simulink - MathWorks

    The body of a function can include valid MATLAB expressions, control flow statements, comments, blank lines, and nested functions. Any variables that you create within a function …

  3. Function Creation - MATLAB & Simulink - MathWorks

    Create Functions in Files Store multiple commands in a program file that can accept inputs and return output. Types of Functions There are several types of functions available with MATLAB …

  4. 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.

  5. Local Functions - MATLAB & Simulink - MathWorks

    Local Functions This topic explains the term local function, and shows how to create and use local functions. MATLAB ® program files can contain code for more than one function. In a function …

  6. 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 …

  7. Add Functions to Scripts - MATLAB & Simulink - MathWorks

    Add Functions to Scripts MATLAB ® scripts, including live scripts, can contain code to define functions. These functions are called local functions. Local functions are useful if you want to …

  8. Nested Functions - MATLAB & Simulink - MathWorks

    Requirements for Nested Functions Typically, functions do not require an end statement. However, to nest any function in a program file, all functions in that file must use an end …

  9. Create Function Handle - MATLAB & Simulink - MathWorks

    Create Function Handle What Is a Function Handle? A function handle is a MATLAB ® data type that stores an association to a function. Indirectly calling a function enables you to invoke the …

  10. plot - 2-D line plot - MATLAB - MathWorks

    This MATLAB function creates a 2-D line plot of the data in Y versus the corresponding values in X.