sampling rate in sawtooth

1 次查看(过去 30 天)
ahmad ramadan
ahmad ramadan 2018-10-23
how i can sample the code at rate 10,000 sample
% Program P1_4 % Generation of a sinusoidal sequence n = 0:40; f = 0.1; phase = 0; A = 1.5; arg = 2*pi*f*n - phase; x = A*cos(arg); clf; % Clear old graph stem(n,x); % Plot the generated sequence axis([0 40 -2 2]); grid; title('Sinusoidal Sequence'); xlabel('Time index n'); ylabel('Amplitude'); axis;

回答(1 个)

Othmane ELMOUATAMID
Othmane ELMOUATAMID 2018-10-23
Hello Ahmad,
You might want to try with this function : resample.

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by