About 352,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. 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 …

  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. piecewise - Conditionally defined expression or function - MATLAB

    This MATLAB function returns the piecewise expression or function pw whose value is val1 when condition cond1 is true, is val2 when cond2 is true, and so on.

  7. How to Create a MATLAB Function - MATLAB - MathWorks

    Sep 18, 2020 · Learn how to create MATLAB function and why functions same time and effort when writing code. Functions are tasks or a set of tasks that are performed on a given set of …

  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. tf - Transfer function model - MATLAB - MathWorks

    Use tf to create real-valued or complex-valued transfer function models, or to convert dynamic system models to transfer function form.

  10. symfun - Create symbolic functions - MATLAB - MathWorks

    Create two symbolic matrix functions to represent the functions F (X, A) and ∂ F (X, A) / ∂ X T. When creating the symbolic matrix functions, keep existing definitions of the symbolic matrix …