About 528,000 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 …

  2. Defining Functions in Sections of a MATLAB file

    Is there a way to define functions inside of sections of a MATLAB file that you can call from the command window? I have three functions I want to define in a single .m file (each in its own …

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

  4. matlab - How do I keep the help-text when creating .p file? - Stack ...

    Aug 25, 2020 · Note that you don't have to actually call foo.p inside your foo.m function: If both a .M and .P file exist, MATLAB will call the P-file for execution, so the .M file only needs to …

  5. Function Creation - MATLAB & Simulink - MathWorks

    Store multiple commands in a program file that can accept inputs and return output. Types of Functions There are several types of functions available with MATLAB ®, including local …

  6. Is it possible to define more than one function per file in MATLAB, …

    Aug 26, 2010 · When I was studying for my undergraduate degree in EE, MATLAB required each function to be defined in its own file, even if it was a one-liner. I'm studying for a graduate …

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

  8. What is the difference between .m and .mat files in MATLAB

    81 Files with a .m extension contain MATLAB code, either in the form of a script or a function. Files with a .mat extension contain MATLAB formatted data, and data can be loaded from or …

  9. File Exchange - MATLAB Central - MathWorks

    Download and share free MATLAB code, including functions, models, apps, support packages and toolboxes

  10. How to call a matlab function file from python using the matlab …

    Mar 1, 2018 · K = calculate_K_matrix(A, B, n) but when I try to call this from python using the matlab engine API like so: import matlab import matlab.engine