About 259,000 results
Open links in new tab
  1. Calling Functions - MATLAB & Simulink - MathWorks

    Calling Functions MATLAB® provides a large number of functions that perform computational tasks. Functions are equivalent to subroutines or methods in other programming languages. …

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

  3. Calling a function in MATLAB - MATLAB Answers - MATLAB …

    Feb 23, 2015 · Edited: MathWorks Support Team on 22 May 2019 Open in MATLAB Online To call a function or a script, just write its name with the necessary inputs: Theme Copy

  4. Defining and calling functions in MATLAB - MathWorks

    Feb 27, 2024 · The example function, called calculateAverage, takes a numeric input and returns the average of its elements. In the definition of the function, the input is called x and the output …

  5. How do I call a function within another function? - MATLAB …

    Jan 21, 2019 · You ask "How do I call a function within another function?", but your example shows functions being defined. Calling a function and defining a function are two totally …

  6. How do I call a function from the command window - MATLAB …

    Feb 9, 2024 · I have this code, and it works properly, however, I need a way to be able to call it from the command window. The line myEquation (2) auto inputs the value as 2, but I need to …

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

  8. Help and Documentation - MATLAB & Simulink - MathWorks

    Help and Documentation All MATLAB ® functions have supporting documentation that includes examples and describes the function inputs, outputs, and calling syntax. There are several …

  9. Function Handles - MATLAB & Simulink - MathWorks

    A function handle is a MATLAB ® data type that represents a function. A typical use of function handles is to pass a function to another function. For example, you can use function handles …

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