フィルターのクリア

how can I do time shifting of 0.001seconds in a dirac delta function and in a PN sequence. means i want p(n-.001) each time i try i get the following error :- Attempted to access PN1(1,0.999); index must be a positive integer or logical. my code is:

2 ビュー (過去 30 日間)
for x=1:1023 temporary = PN1(1,x); new_index =(x-delta); PN1(1,new_index) = temporary;
end

回答 (1 件)

random09983492
random09983492 2013 年 6 月 18 日
Hi Vaishali,
Matlab array indices must be positive integers. PN1 is a matrix or array. PN1(x,y) specifies the array element at row x and column y of that matrix. x and y do not act as inputs to any function.
  2 件のコメント
vaishali  passi
vaishali passi 2013 年 6 月 18 日
i know this thing. but i have to do p(n-delta) so how can i do it ?
random09983492
random09983492 2013 年 6 月 18 日
You will need to make PN1 a function. See here for how to make functions in Matlab.

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

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by