MATLAB: Error using ==> mupadmex Error in MuPAD command: Out of memory

memory

Dear all
I have this error shown
the memory used seem to be very little.Please help!!!!!
please help!!! thank you very much.

Best Answer

Symbolic solutions of larger matrices are inherently large. For example the inverse of a 5 x 5 matrix is over 200000 characters long, and 6 x 6 is over 2000000 long; each additional increment makes the inverse about 10 times larger to represent on output -- and additional memory might be required during the calculation. Multiple gigabytes to calculate the 7 x 7. Roughly 2.2 * 10^N is the output size for the symbolic inverse of a matrix N x N.
If you do not have that much memory, then either add physical memory or add "swap" (which will likely be very slow unless you are using solid state disks).
There is no "compact" or "memory efficient" symbolic inverse. Symbolic solutions are exact solutions and every portion of the solution is needed to get the right answer. You might be able to simplify() afterwards but the sizes I list above are after simplification.
What size of matrix are you trying to process?