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

    This MATLAB function declares a function named myfun that accepts inputs x1,...,xM and returns outputs y1,...,yN.

  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

    Function Precedence Order To determine which function to call when multiple functions in the current scope have the same name, MATLAB uses function precedence order. Update Code …

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

  5. linspace - Generate linearly spaced vector - MATLAB

    This MATLAB function returns a row vector of evenly spaced points between x1 and x2.

  6. global - Declare variables as global - MATLAB - MathWorks

    Ordinarily, each MATLAB ® function has its own local variables, which are separate from those of other functions and from those of the base workspace. However, if several functions all …

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

  8. fplot - Plot expression or function - MATLAB - MathWorks

    This MATLAB function plots the curve defined by the function y = f(x) over the default interval [-5 5] for x.

  9. arguments - Declare function argument validation - MATLAB

    For example, if you create a function named myplot with repeating arguments X, Y, and style, the function accepts multiple sets of these three arguments, such as …

  10. Implement MATLAB Functions in Simulink with MATLAB Function …

    You have an existing MATLAB function that models custom functionality, or it is easy for you to create such a function. Your model requires custom functionality that is not or cannot be …