2,010 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. MATLAB - Functions - Online Tutorials Library

    A function is a group of statements that together perform a task. In MATLAB, functions are defined in separate files. The name of the …

  3. Function Creation - MATLAB & Simulink - MathWorks

    Functions contain one or more sequential commands and can accept inputs and return outputs. When you have multiple lines of …

  4. How to create a function in MATLAB - GeeksforGeeks

    May 6, 2021 · Below are some examples that depict how to use functions in MATLAB: Example 1: Function with one output. The …

  5. MATLAB — Examples - MathWorks

    Create a ThingSpeak™ channel and use MATLAB® functions to collect the temperature data from a BMP280 sensor connected to …

  6. Functions in MATLAB - GeeksforGeeks

    Aug 16, 2021 · MATLAB functions must be defined in separate files and function name must match with the file name. Let's also see …

  7. Functions - MATLAB & Simulink - MathWorks

    As you write code, you can define your own functions to reuse a sequence of commands. For instance, create a function in a …

  8. How to Call a Function in MATLAB: Simple Walkthrough - wikiHow

    Mar 6, 2025 · How to Call a Function in MATLAB Start your script with function followed by the name you want to assign it. After …

  9. Declare a Function in MATLAB: Syntax and Files — CASRAI

    1 day ago · How to declare a function in MATLAB: the function line, file naming, local, nested and anonymous functions, and fixes for …

  10. Examples of MATLAB functions

    Examples of MATLAB functions Some very short, simple functions: square.m Calculates the square of a number. cube.m Calculates …