Tech Fixx · Video

MATLAB Functions Tutorial: Inputs, Outputs & Reusable Code | Lesson 11

Watch this 1 min 43 sec tutorial from the Tech Fixx channel, published .

Check that the device, software and version shown match your setup. Use the player controls for captions, playback speed and full screen where available.

Loading the player connects to YouTube. If playback is unavailable here, watch on YouTube ↗.

From the video description

Learn how to define and call your own MATLAB functions with input and output arguments. This beginner-friendly MATLAB Lesson 11 explains the difference between scripts and functions, correct file naming, reusable code and common mistakes.

In this MATLAB functions tutorial: • Understand scripts versus functions • Write a function declaration • Add one or more input arguments • Return output values • Save functions with the correct file name • Call functions from a script or Command Window • Diagnose common scope and naming errors

Official MathWorks documentation: https://www.mathworks.com/help/matlab/ref/function.html https://www.mathworks.com/help/matlab/matlab_prog/create-functions-in-files.html

Continue the full MATLAB for Beginners course on Tech-Fix and subscribe for more step-by-step programming lessons.

#MATLAB #MATLABFunctions #ProgrammingTutorial