About 577,000 results
Open links in new tab
  1. function - Declare function name, inputs, and outputs - MATLAB

    This declaration statement must be the first executable line of the function. Valid function names begin with an alphabetic character, and can contain letters, numbers, or underscores.

  2. How to Write a Function and Call It in MATLAB - 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 writing your function in the script editor, call it using the …

  3. Write functions in Matlab | MATLAB Tutorial for Beginners - YouTube

    In this tutorial, I teach you how to write functions in Matlab step-by-step. Functions are an integral part of programming and will save you tons of time when writing programs.

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

  5. Writing and Using Functions - University of British Columbia

    In Matlab, executing functions is faster than executing scripts. To create your own function, open a new file in the editor by typing edit filename.m and begin by creating the function header, …

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

  7. Creating Function in Files in MATLAB - GeeksforGeeks

    Apr 28, 2025 · User-Defined Functions: In MATLAB, we also create functions by writing Matlab commands in files that take input/s as argument/s and then return the output. Also, save the …

  8. Programming with MATLAB: Creating Functions - GitHub Pages

    Feb 28, 2025 · Now that we know how to write functions, we can start to make our code modular, separating the different parts of our program into small functions that can be reused.

  9. How to Write a Function Matlab? – Mastering Matlab Functions

    Aug 20, 2025 · In this blog post, we’ll take you by the hand and guide you through the process of writing a function in Matlab, from scratch. You’ll learn how to define inputs and outputs, use …

  10. How To Write And Call Functions In MATLAB?

    May 24, 2025 · Learn how to write and call functions in MATLAB with clear examples, syntax tips, and best practices for efficient coding.