Why sometimes we place an empty brackets inside function inputs?
9 次查看(过去 30 天)
显示 更早的评论
I don't know the purpose or the mean of these empty square brakets inside many functions, for instance:
min( a, [ ],2)
imshow(a, [ ])
0 个评论
采纳的回答
JESUS DAVID ARIZA ROYETH
2020-2-15
means that the second value the function receives is empty, in both cases
if you give a value to that second parameter to "min" the function will convert the largest values of "a" into the value you assign to that parameter
You can check the official documentation here:
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!