Tagged: return

matlab

Importing MAT-Files

MAT-Files Viewing the Contents of a MAT-File MAT-files are binary MATLAB format files that store workspace variables. To see the variables in a MAT-file before loading the file into your workspace, click the file...

MATLAB Commands

Basic Command Syntax A simple MATLAB command computes the result of the expression to the right of the equals sign and assigns the value of the result to the output variable at the left....

Plotting Tools — Interactive Plotting

What Are Plotting Tools? The modular, interactive plotting environment called plotting tools enables you to Create various type of graphs Select variables to plot directly from a workspace browser Easily create and manipulate subplots...

Finding maximum and minimum values in arrays

Let’s write a function file range.m that calculates the difference between the maximum and minimum value in a vector. The file should return a reply. Open an edit window. Create a function file like...

Controlling Command Window Input and Output

The format Function The format function controls the numeric format of the values displayed. The function affects only how numbers are displayed, not how MATLAB software computes or saves them. Here are the different...

bsxfun

bsxfun – Apply element-by-element binary operation to two arrays with singleton expansion enabled Syntax C = bsxfun(fun,A,B) Description C = bsxfun(fun,A,B) applies an element-by-element binary operation to arrays A and B, with singleton expansion...