Hi Reid,
I understand that you are trying to denoise a signal and are getting an error because the size of the array that you are trying to use is exceeding your MATLAB’s memory preference.
Here are a few ways this issue can be resolved:
- You can try to use tall arrays. These help to work with arrays that are too large to fit in the memory. You can find more information on them through the following MATLAB documentation: https://in.mathworks.com/help/releases/R2021b/matlab/import_export/tall-arrays.html
- If the issue persists, you can untick the checkbox ‘Limit the maximum array size to a percentage of RAM’. To do this, you can go to: Preferences -> MATLAB -> Workspace. This allows you to use virtual memory in addition to the machine’s RAM. You can refer to the following documentation for more information about this: https://www.mathworks.com/help/releases/R2021b/matlab/matlab_env/set-workspace-and-variable-preferences.html
- You can also refer to the following documentation for more information on resolving "Out of Memory" errors, if these occur at a later point: https://www.mathworks.com/help/releases/R2021b/matlab/matlab_prog/resolving-out-of-memory-errors.html
Hope this helps.