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

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by