필터 지우기
필터 지우기

how to deal with the array size limits problem?

조회 수: 6 (최근 30일)
xd h
xd h 2021년 6월 24일
댓글: xd h 2021년 6월 28일
I built a zero arra using "I=zeros(80,80,400,400,700);"
But the commamd window said
" The requested 80x80x400x400x700 (5340.6GB array exceeds the preset maximum array size. Creating arrays larger than this limit can take a long time and cause matlab to be unresponsive. For more information, see array size limits or presets panel"
What dose it mean?And how to deal with it?

답변 (1개)

Steven Lord
Steven Lord 2021년 6월 24일
You're asking for roughly 5 terabytes of contiguous memory. To put that into some context, in 2012 the English Wikipedia had about 1.9 terabytes of multimedia files.
If your machine has enough memory to create such a large array you can uncheck the preference to limit the amount of memory / size of the array that MATLAB will try to allocate. However, allocating that large a chunk of memory is likely to take a long time and doing anything with that data may require a second large chunk of memory.
Consider if you actually need to create that huge an array. If you describe what you're trying to do we may be able to suggest an alternate approach that requires less memory (or perhaps multiple smaller chunks that take up the same total amount of space.)
  댓글 수: 4
Steven Lord
Steven Lord 2021년 6월 28일
Please explain in words not code what you're trying to do with this code and we may be able to offer some suggestions.
xd h
xd h 2021년 6월 28일
What I do is 3D-synthetic aperture focusing technique(3D-SAFT) in Ultrasonic .
There are several steps below.
1.Capturing the amplitude of the ultrasonic A-Sacn signal of every excitation source.
2.Seting the parameters,such as sampling frequency,ultrasonic wave speed,imaging area ,excitation source position and so on.
3.Deviding the 3D area into several meshes.
4.Computing the time-delay from every mesh to every excitation source position.
5.Extracting corresponding amplitude of every mesh from amplitude matrix using time-delay and sampling frequency ,and then superimpositting the amplitude.
6.Visualizing the 3D focusing data

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by