Please how do you write a code to sample a given complex exponential sinusoid (exp(j*phi(nTs)),given that n=0.....N-1.Given also that i have already generated 10000 discrete sample of phi_t .

2 ビュー (過去 30 日間)
Please how do you write a code to sample a given complex exponential sinusoid (exp(j*phi(nTs)),given that n=0.....N-1.Given also that i have already generated 10000 discrete sample of phi_t .N=64 and Ts=5microseconds.

採用された回答

Wayne King
Wayne King 2014 年 3 月 28 日
編集済み: Wayne King 2014 年 3 月 28 日
If you already have the vector phi just evalute phi at your t points.
Ts = 5e-6;
t = 0:Ts:(64*Ts);
phi = 2*pi*100*t.^2+2*pi*50e4*t;
x = exp(1j*phi);
  2 件のコメント
Emmanuel
Emmanuel 2014 年 3 月 28 日
Thanks Wayne..I really appreciate your reply!
Emmanuel
Emmanuel 2014 年 3 月 28 日
編集済み: Emmanuel 2014 年 3 月 28 日
for i=1:10000
dW = sqrt(var)*((randn(1,N)));
phi= [0,cumsum(dW)];
phi_t=2*pi*phi;
c_t=exp(j*phi_t);
phi_nTs_cum=phi_t(1:64);
c_t_sampled=exp(j*phi_nTs_cum);
end.
This was what i implemented could you check if i am correct.i just want 64 samples of phi_t every symbol duration after every loop.i am sceptical because i did not use the symbol duration in my code.please help?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeology についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by