About 142,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

    Create Functions in Files. Both scripts and functions allow you to reuse sequences of commands by storing them in program files. Scripts are the simplest type of program, since they store …

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

  5. Local Functions - MATLAB & Simulink - MathWorks

    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 file, the …

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

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

    They are also useful for experimenting with functions, which can be added, modified, and deleted easily as needed. Create a Script with Local Functions. To create a script or live script with …

  8. linspace - Generate linearly spaced vector - MATLAB - MathWorks

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

  9. Nested Functions - MATLAB & Simulink - MathWorks

    For example, create a function in a file named makeParabola.m. This function accepts several polynomial coefficients, and returns a handle to a nested function that calculates the value of …

  10. Anonymous Functions - MATLAB & Simulink - MathWorks

    You can create an anonymous function that returns multiple outputs using the deal function. See Return Multiple Outputs from Anonymous Function for an example. For example, create a …

Refresh