About 50 results
Open links in new tab
  1. Create Functions in Files - MATLAB & Simulink - MathWorks

    Contents of Functions and Files 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 …

  2. function - Declare function name, inputs, and outputs - MATLAB

    The name of the file must match the name of the first function in the file. In a script file which contains commands and function definitions. Script files cannot have the same name as a function in the file. …

  3. 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, …

  4. File Operations - MATLAB & Simulink - MathWorks

    Current Folder Settings Specify the number of files that display in the Files panel, and customize their appearance. Access Files in MATLAB Online Upload and download files to and from MATLAB …

  5. Types of Functions - MATLAB & Simulink - MathWorks

    There are several types of functions available with MATLAB, including local functions, nested functions, private functions, and anonymous functions.

  6. fopen - Open file or obtain information about open files - MATLAB

    This MATLAB function opens the file, filename, for binary read access, and returns an integer file identifier equal to or greater than 3.

  7. save - Save variables from workspace to file - MATLAB - MathWorks

    This MATLAB function saves all variables from the current workspace in a binary MATLAB file (MAT-file) named filename.

  8. load - Load variables from file into workspace - MATLAB

    This MATLAB function loads data from filename into the MATLAB workspace.

  9. which - Locate functions and files - MATLAB - MathWorks

    If item is a MATLAB ® function in a MATLAB code file (.m,.mlx, or .p extension), or a saved Simulink ® model (.slx or .mdl extension), then which displays the full path for the corresponding file. item must …

  10. Scripts vs. Functions - MATLAB & Simulink - MathWorks

    Code files can be scripts that simply execute a series of MATLAB statements, or they can be functions that also accept input arguments and produce output.