# MATLAB: Getting a subfunction to return a value as a logical

callclassfunctionlogical?returnsub function

My sub-function is called from my main function as such…
[m,n] = funk(a,b)
I need m to return as a logical not a double. At the end of the sub-function I use logical(m), but it still returns as a double in the main function. how do I get it to return into the main function as a logical? Thanks

m = logical(m)