How can I define a matrix that exceeds maximum array size?

2 views (last 30 days)
I try to solve a nonlinear optimization problem using fmincon. the initial value x0 is a 467856 by 1 vector. when calling fmincon I have got this error
Error using zeros
Requested 467856x467856 (1630.9GB) array exceeds maximum array size preference.
when I typed 'memory' in the workspace, it showed the following information
Maximum possible array: 11812 MB (1.239e+10 bytes) *
Memory available for all arrays: 11812 MB (1.239e+10 bytes) *
Memory used by MATLAB: 1703 MB (1.785e+09 bytes)
Physical Memory (RAM): 16223 MB (1.701e+10 bytes)
* Limited by System Memory (physical + swap file) available.
Is there any help?

Answers (0)

Categories

Find more on Operators and Elementary Operations in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!