error: (-205:Formats of input arguments do not match) All the matrices must have the same data type

NoSuchKey