MATLAB: Help diagnosing PC restart issue while computing matrix pseudo inverse

crashmemoryramrestart

Hi all,
I am having trouble running a code due to my PC crashing/restarting whilst running. I narrowed down that the crash occurs when trying to use pinv(). I am essentially reconstructing signals, and even with the smallest possible signal, I am required to find the pseudoinverse of a 654*4096 array (I am not sure if this should be considered computationally heavy, but you could say its my minimum requirement).
It was suggested I have a memory issue (8gb RAM) and this may be likely. I'm no expert on the specifics between physical/virtual memory, but I've tried monitoring my physical memory usage prior to crashing using the windows perfmon, and it appears that at least 1 second before crashing (perfmon logs at 1 second intervals) MATLAB is using around 5.2gb ram. Coupled with my remaining processes using ~30% RAM it appears memory could be my issue.
I just wanted to see if anyone else thinks otherwise before I go out and buy some more sticks?
Cheers.
* EDIT: I would like to add that after some debugging, I can say that my PC is crashing while trying to calculate the singular value decomposition SVD, used in the pinv() function… if that helps anyone.
EDIT 2: Tried again with 16gb ram, as well as replacing my initial 2 sticks with 2 brand new sticks, still no luck. Meanwhile my friends can run it fine with 8gb ram. The arrays being produced by the initial part of the code match between me and anyone else, apart from some random noise which is generated in y where z = pinv(x)*y. I got my friend to send over his arrays which worked for him and tried to calculate pinv( on the command line, and PC still crashes.

Best Answer

Thank you all for your help. I figured out the issue, I had OC'd my CPU a while ago, and despite running on 'standard performance' in my OC tool, I was still running at 4.5 GHz. Manually changing it back to default and everything works now! (12 hours later)