About 755,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 - 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.

  3. Examples of MATLAB functions

    Illustrates how a function can return more than one value. calculate.m Calls a given function with a given single argument. guess_letter.m Plays a guessing game with the user. silly_pi.m …

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

  5. A Complete Guide To Matlab Functions - Simplilearn

    Aug 23, 2025 · Matlab functions are important that allow you to create repeatable codes. In this article, we will understand Matlab Functions in detail. Click here to learn more.

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

    Functions provide more flexibility, primarily because you can pass input values and return output values. For example, this function named fact computes the factorial of a number (n) and …

  7. How to Write a Function in Matlab: A Simple Guide

    Discover how to write a function in MATLAB effortlessly. This guide unpacks the essential steps and tips for crafting your own MATLAB functions.