How to model a delay element in matlab

I want to model x(n-n0) in matlab where x(n) is my input signal

1 件のコメント

Kaustubha Govind
Kaustubha Govind 2012 年 11 月 1 日
Do you need this to be a function? Assuming that you are given a function delay(), could you show us how you plan to use? Specifically in terms of the input signal size and the expected output.

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

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 1 日
編集済み: Azzi Abdelmalek 2012 年 11 月 1 日

1 投票

close
n=1:10
yn=rand(1,numel(n)) % your signal
plot(yn,'-og')
n0=4
yn0=[zeros(1,n0-1) yn] % your delayed signal
hold on,
plot(yn0,'-*r')

その他の回答 (1 件)

Amit Khare
Amit Khare 2012 年 11 月 1 日

0 投票

I do not want to use unit delay block from simulink, I wanted to do it using matlab script

1 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 1 日
can you post an example?

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

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by