issues with sampling rate in Giga Hertz : array exceeds maximum array size preference array exceeds maximum array size preference.

조회 수: 10 (최근 30일)
I would like to model a unit step function of a digital system with sampling clock running at 1 GHz. My undertanding is sampling rate in matlab is specified in Hertz. So, for 1 GHz sampling rate if I exceute the below,, I get the message and matlab is unresponsive . How can I model a 1GHz system sampling rate (or) can I accomplish the sane with Fs=1 Hz and still accurately model the digital system running at 1 GHz clock?
Fs = 1000000000; %sampling rate in hertz ( 10 power 9 = Giga Hertz)
Ts = 1/Fs; %sampling time interval in seconds
t = 0:Ts:1000-Ts; %sampling period
unitstep = t>=1;
plot (t, unitstep);
Requested 1000000000000x1 (7450.6GB) array exceeds maximum array size preference array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.
  댓글 수: 2
Walter Roberson
Walter Roberson 2018년 12월 31일
Are you certain that you need to model 1 GHz for 1000 seconds?? That is what the 1000-Ts is, the upper limit on the number of seconds (not the number of samples.)
vk
vk 2018년 12월 31일
The fix to replace 1000 with smaller number helped. Thanks

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by