where to find memory limit

Hi,
I’m using the example code of dsp.DigitalUpConverter System object to make some tests: upconverter
I found that an "Out of memory" error occurs if 'InterpolationFactor' is set to be 10000. I know there must be some limits on this parameter, but where to find such information?
Owen

回答 (3 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 9 月 5 日
編集済み: Azzi Abdelmalek 2014 年 9 月 5 日

0 投票

Type
memory
Julia
Julia 2014 年 9 月 5 日

0 投票

Hi,
I would rather say that the limits are your OS and your ram memory.
You can execute the
memory
command to find out about your ram properties. The more the better :)
So if you want to know how large 'InterpolationFactor' can get without an error, I think you can only try to run the program with different values until you reach the limit.
Adam
Adam 2014 年 9 月 5 日

0 投票

[userview systemview] = memory;
gives the full output of the memory command. I use this in a custom function to get the maximum memory that I can use for processing at any given time based on
systemview.PhysicalMemory.Available
The systemview output contains 3 structs each with information in that you may find useful. I don't know anything about the function you are using though.
I use this in conjunction with a 'sizeof' function I wrote which works like the C++ function to give me the size in bytes of my data type so that I can work out what size of matrix of a given data type I can load in to process on, including, of course, an estimate of any result matrices and temporary matrices my algorithm will require. That is less easy for a Matlab toolbox function though unless you have a very good understanding of how it works and how much memory it uses for a given input.

カテゴリ

ヘルプ センター および File ExchangeLanguage Fundamentals についてさらに検索

製品

タグ

質問済み:

2014 年 9 月 5 日

回答済み:

2014 年 9 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by