As found in the help imsubtract
:
'You can use the expression X-Y instead of imsubtract.'
So yes, it seems to be the same. Generally in Matlab you can do something using various ways, and that's what gives to Matlab its very useful flexibility.
Вопрос
I am reading Matlab code and I saw two different types for image arrays subtraction. So, I write here to confirm that it is possible to do it using diffent ways and that I do not make I mistake.
array1 = array2 - array3;
array1 = imsubtract(array2, array3);
Решение
As found in the help imsubtract
:
'You can use the expression X-Y instead of imsubtract.'
So yes, it seems to be the same. Generally in Matlab you can do something using various ways, and that's what gives to Matlab its very useful flexibility.