What is the computational cost of an nargin check?
1 次查看(过去 30 天)
显示 更早的评论
I have a program that invokes a function a lot of times in a for loop. In that function I have to check the number of input arguments with an if statement. Does this remarkably influences the run-time? That specific function (which is invoked in the for loop) is a general purpose function so input check is needed.
Thank you, Zoli
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!