필터 지우기
필터 지우기

How can I add 1-bit delay to incoming serial bit pattern?

조회 수: 1 (최근 30일)
Micky
Micky 2013년 2월 11일
I am learning MATLAB and this is my first time encounter with this doing some kind of behavioral coding.
The serial bit pattern is an array of elements, with two fixed values 1 and -1. I think I need to implement some kind of shifting (may be I am wrong). After the serializer block I have a one-bit delay block, which would delay each bit outgoing through it with 1-bit delay. I need help in this.
The serial bit-pattern is set at particular frequency of PLL clock.
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 11일
Are you using Simulink?
Micky
Micky 2013년 2월 11일
No, I am doing Behavioral coding in MATLAB itself.

댓글을 달려면 로그인하십시오.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 11일
편집: Azzi Abdelmalek 2013년 2월 11일
x=[1 -1 -1 1]
f=@(k) x(k-1)
If you are using simulink you can use unit delay block
  댓글 수: 4
Micky
Micky 2013년 2월 12일
Thanks Azzi, seems like it is working. I am doing some scrutiny to verify everything working fine or not.
Micky
Micky 2013년 2월 13일
Hi Azzi, I figured out the result from your solution gives a pointer to the elements of the original array(from which we want a shifted version of). But I really need is a new shifted array and eventually I want to add these arrays.(New Shifted array + Original Array). Can I do something like e.g . aa =[11 22 33 44]; bb = aa(2:4); % this is shifting left It gives bb = [22 33 44], but one value is dropped out. If possible can you provide method to shift right and how to pad the dropped out value appropriately so that the size of the new array remains same as the original array?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Pulse and Transition Metrics에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by