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

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

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

    function [y1,...,yN] = myfun(x1,...,xM) declares a function named myfun that accepts inputs x1,...,xM and returns outputs y1,...,yN. This declaration statement must be the first executable …

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

    Jan 21, 2019 · Because the main function in example440767 can "see" the local function localFunction inside its file, it can create a function handle that can be used to call that function …

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

    Feb 23, 2015 · Your two functions are in two different Mfiles. If these are functions you should ensure that the function and Mfile names are the same. Then you can simply call one function …

  5. How do I call a function from the command window

    Feb 9, 2024 · Add a line that defines a function handle to the function and stores that function handle in a variable. If that function handle is created inside the script file, you will be able to …

  6. Call Local Functions Using Function Handles - MATLAB & Simulink

    If a function returns handles to local functions, you can call the local functions outside of the main function. This approach allows you to have multiple, callable functions in a single file. Create …

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

  8. Defining and calling functions in MATLAB

    Feb 27, 2024 · After the 'function' command we state the function, (A = AreaSphere(radius)), that explicitly lists part of the call function, (Area=AreaSphere(r)), however, the call function it …

  9. Call C from MATLAB - MATLAB & Simulink - MathWorks

    A shared library is a collection of functions dynamically loaded by an application at run time. The MATLAB interface supports libraries containing functions defined in C header files. To call …

  10. Function Handles - MATLAB & Simulink - MathWorks

    Use a function handle to create an association to a named function or an anonymous function. Then, you can indirectly call the representative function. Pass Function to Another Function. …

Refresh