About 572,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. MATLAB MATLAB-Function-Syntax | Coddy Reference

    Learn MATLAB function syntax with this comprehensive guide. Discover how to define, structure, and use functions in MATLAB for efficient programming.

  3. 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 file and of the function should be the same.

  4. Writing and Using Functions - University of British Columbia

    Functional code is often better organized, and easier to read and understand. Variables inside a function only exist inside the function, so we can reuse the same variable name multiple times. …

  5. How to Define And Call A Function In MATLAB? - Elvanco Blog

    Sep 14, 2025 · Learn how to define and call a function in MATLAB effortlessly with our step-by-step guide.

  6. A Complete Guide To Matlab Functions - Simplilearn

    Aug 23, 2025 · In MATLAB, you can also store your commands in files called functions. Functions have a lot more flexibility than scripts—they allow you to pass input values and return output …

  7. Creating Function in Files in MATLAB - GeeksforGeeks

    Apr 28, 2025 · The function is a set of statements or commands, which take input/s as parameters and return output. We write functions to use it again and again in the program i.e. it makes a …

  8. 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 code, use the function keyword to define a function within a file.

  9. How to Create a Function in MATLAB - Delft Stack

    Feb 2, 2024 · A function in Matlab consists of mainly three things output, input, and function name. To define a function, we use the variable function, and then we define the outputs, the …

  10. Chapter 8: Functions and Function Handles – A Guide to MATLAB

    MATLAB has a file type called functions which enables the user to create their own functions in separate script files and refer to them in another script they are writing.