About 178,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. 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 are stored within a …

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

  4. fprintf - Write data to text file - MATLAB - MathWorks

    Write data to a file and return the number of bytes written. Write an array of data, A, to a file and get the number of bytes that fprintf writes.

  5. The How and Why of Writing Functions - MathWorks

    Get an overview of the course and the course example. Create a local function from code you want to repeat. Write function files for use outside of your script. Examine base and function workspaces and …

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

  7. write - Write data to serial port - MATLAB - MathWorks

    This MATLAB function writes the row or column vector data to the specified serial port connection device.

  8. Local Functions - MATLAB & Simulink - MathWorks

    Local Functions This topic explains the term local function, and shows how to create and use local functions. MATLAB ® program files can contain code for more than one function. In a function file, …

  9. writetable - Write table to file - MATLAB - MathWorks

    Write the table to a file. The writetable function uses your system default encoding when writing files. Results may differ based on your system settings. To examine the resulting file, read the table back …

  10. Anonymous Functions - MATLAB & Simulink - MathWorks

    You do not need to create a variable in the workspace to store an anonymous function. Instead, you can create a temporary function handle within an expression, such as this call to the integral function: