Uploaded July 2024 | Updated November 2026, 10 hours ago
In this video we show how to implement default arguments in custom Matlab functions by using ‘nargin’ and ‘varargin’.
Topics and timestamps:
0:00 – Function Version A
1:34 – Function Version B (more inputs)
6:10 – Function Version C (varargin)
Lecture notes and code can be downloaded from github.com/clum/YouTube/tree/main/Matlab27
All Matlab/Simulink videos in a single playlist (youtube.com/playlist?list=PLxdnSsBqCrrEU0dLSrTcl0-w9cVYKMTaF)
#Matlab #Simulink
You can support this channel via Patreon at patreon.com/christopherwlum or by clicking on the ‘Thanks’ button underneath the video. Thank you for your help!
In this video we show how to implement default arguments in custom Matlab functions by using ‘nargin’ and ‘varargin’.
Topics and timestamps:
0:00 – Function Version A
1:34 – Function Version B (more inputs)
6:10 – Function Version C (varargin)
Lecture notes and code can be downloaded from github.com/clum/YouTube/tree/main/Matlab27
All Matlab/Simulink videos in a single playlist (youtube.com/playlist?list=PLxdnSsBqCrrEU0dLSrTcl0-w9cVYKMTaF)
#Matlab #Simulink
You can support this channel via Patreon at patreon.com/christopherwlum or by clicking on the ‘Thanks’ button underneath the video. Thank you for your help!










