I'm trying to use the relu function on a matrix in MATLAB, and am calling it as A = relu(A), but I keep getting the error
Incorrect number or types of inputs or outputs for function relu.
I tried it on a scalar as well, and also get the same error. What could be causing this?
In MATLAB,
reluis a method ofdlarray. So you need to pass in adlarrayinstance as input, like this: