About 583,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. Live Editor tasks are apps that can be added to a live script to interactively perform a specific set of operations. Tasks represent a series of MATLAB commands. To see the commands that the task runs, show the generated code. -, --, :, -. linestyle, marker, and color as a string. Example: "-r"

  3. 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 the few more ways of defining a function as per the user needs. Now let’s dive into an example and understand how to define a basic function. Example:

  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 function calculates the mean of the input vector. Output : Example 2: Function with multiple outputs. The function calculates both nCr and nPr of inputs n and r. Output : Example 3: Multiple functions in a file.

  5. Function Creation - MATLAB & Simulink - MathWorks

    There are several types of functions available with MATLAB ®, including local functions, nested functions, private functions, and anonymous functions. To determine which function to call when multiple functions in the current scope have the same …

  6. MATLAB Functions - Online Tutorials Library

    MATLAB Functions - Explore the essential MATLAB functions to enhance your programming skills. Learn how to use built-in functions effectively for data analysis and visualization.

  7. MATLAB Examples for Beginners - algorithmminds.com

    These basic MATLAB functions not only simplify calculations but also empower users to analyze their data effectively. Examples of practical applications abound, from statistical analysis to engineering problems, highlighting the integral role these functions play in utilizing MATLAB efficiently. Advanced MATLAB Features and Functions Examples

  8. List of Mathematical Functions and Expressions in MATLAB | Example

    Nov 6, 2018 · How to write the mathematical expressions and functions in MATLAB? Here, In this tutorials, I am sharing a list of various math functions and their short abbreviations. This will help you for calculation in the MATLAB Window. Also, it will help you solving basic examples with the mathematical expressions. What is Expression in general?

  9. Examples of MATLAB functions - Rochester Institute of …

    Examples of MATLAB functions Some very short, simple functions: square.m Calculates the square of a number. cube.m Calculates the cube of a number. plusone.m Adds one to a number. isperfect.m Checks to see if a number is "perfect". count_odd.sci Counts the number of odd numbers within a given range. Functions showing input/output in MATLAB

  10. MATLAB Functions | 4 Types of Functions in MATLAB and Examples

    Mar 21, 2023 · There are several types of functions used in MATLAB. They are as follows: 1. Anonymous Function. It is the function that is not stored in a program file, but it is associated with the variable whose data type is function_handle. It is defined in a single statement and has any number of input or output arguments. The syntax can be written as:

Refresh