Why sometimes we place an empty brackets inside function inputs?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhamed Sewidan
am 15 Feb. 2020
Kommentiert: Muhamed Sewidan
am 15 Feb. 2020
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 Kommentare
Akzeptierte Antwort
JESUS DAVID ARIZA ROYETH
am 15 Feb. 2020
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:
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!