About 165,000 results
Open links in new tab
  1. Add Functions to Scripts - MATLAB & Simulink - MathWorks

    Add functions to scripts to reuse code within a script and avoid creating and managing separate function files.

  2. function - Declare function name, inputs, and outputs - MATLAB

    The name of the file must match the name of the first function in the file. In a script file which contains commands and function definitions. Script files cannot have the same name as a …

  3. Scripts vs. Functions - MATLAB & Simulink - MathWorks

    Code files can be scripts that simply execute a series of MATLAB statements, or they can be functions that also accept input arguments and produce output.

  4. Programming and Scripts - MATLAB & Simulink - MathWorks

    Programming and Scripts The simplest type of MATLAB ® program is called a script. A script is a file that contains multiple sequential lines of MATLAB commands and function calls. You can …

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

    Program files can contain multiple functions. If the file contains only function definitions, the first function is the main function, and is the function that MATLAB associates with the file name. …

  6. MATLAB - MathWorks

    MATLAB supports matrix-based computation, data analysis, algorithm development, and visualization. Use built-in functions or develop custom ones; execute scripts by typing their …

  7. Live Scripts and Functions - MATLAB & Simulink - MathWorks

    Live functions provide additional flexibility, allowing you to pass input values and return output values. You can add formatted text, images, hyperlinks, and equations to live scripts and …

  8. Local Functions - MATLAB & Simulink - MathWorks

    Local functions in the current file have precedence over functions and class methods in other files. That is, when you call a function or method within a program file, MATLAB checks whether the …

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

  10. How to call functions from another m file - MATLAB Answers

    Mar 9, 2017 · In second script I call these functions. How to include script1.m in second script and call functions from script1.m?