Please, please, please read the FAQ. If you understand its contents, you will know that you should not have even tried to use the pinv function. Here is a list of accepted functions.
pinv