フィルターのクリア

How do I go by this in Matlab?

1 回表示 (過去 30 日間)
Afuaab Koohg
Afuaab Koohg 2022 年 10 月 6 日
編集済み: Torsten 2022 年 10 月 6 日
How would i generate realization of the signal function below
The coefficients a are uniformly distributed in [−1, 1]. c is a constant.
How do I go by this in Matlab?
  3 件のコメント
Afuaab Koohg
Afuaab Koohg 2022 年 10 月 6 日
I have made modifications to the question.
Thanks@Torsten
Rik
Rik 2022 年 10 月 6 日
You still did not explain what you mean with realizations.

サインインしてコメントする。

採用された回答

Torsten
Torsten 2022 年 10 月 6 日
編集済み: Torsten 2022 年 10 月 6 日
%************ Variable declaration******************
rng('default')
t = -20:0.1:20;
n = 1000; % number of realizations
signal = zeros(n,length(t)); %for spped allocations
c = 25; % constant
ak = -1 + 2*rand(n,21); % numbers in the interval (a,b) with the formula r = a + (b-a).*rand(N,1).
%********************************************************************************************
for i = 1:length(t)
T = t(i);
data = zeros(n,1);
for k = -10:1:10
data = data + ak(:,k+11)*sinc(T-k);
end
signal(:,i) = c*data;
end
plot(t,signal)
  1 件のコメント
Afuaab Koohg
Afuaab Koohg 2022 年 10 月 6 日
Thanks @Torsten

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by