Throwing and handling errors (or exceptions) is an important part of practical programming.
Here your task is to provide an alternative to the built in elementwise division operator ./ (equivalent to the rdivide function) with the following differences:
This concept is analogous to the built in MATLAB function "realsqrt".
The first error must generate an MException with the following properties: identifier = 'realDivision:complexInput', message = 'The realDivision function only operates on real inputs.'.
The second error must generate an MException with the following properties: identifier = 'realDivision:incompatibleInput', message = 'The realDivision function is not defined for character inputs.'.
All other behaviour should be identical to the mrdivide function. Any exceptions that would have been thrown by mrdivide should also be thrown by your function — with the same contents of the identifier and message fields.