About function idinput - prbs , Why is not change graph although change the number of shift registers?

조회 수: 3 (최근 30일)
I tried the codes as follows.
n = 3 and n=5
u = idinput(200,'prbs',[n,1],[-1,1]);
subplot(311), stairs(u), axis([0 200 -1.2 1.2]);
subplot(312), plot(covf(u,200)), axis([0 200 -0.2 0.2]);
subplot(313), periodogram(u);
But, Graph became same both n=3 and n=5.(See the figure below)
Please help about this problem.

채택된 답변

Sarvani Panguluri
Sarvani Panguluri 2020년 9월 10일
Hi,
According to my understanding, you are using the idinput function with Type of generated signal being prbs. As per the documentation,
u=idinput([],Type, Band, Range)
The Band for Type 'prbs' need to be specified in the format [0 B] where B is the inverse of the clock period of the signal.
  댓글 수: 1
Asahi Kitada
Asahi Kitada 2020년 9월 21일
Thank you Sarvani Panguluri!
I solved this problem as see the following site.
https://booth.pm/ja/items/1180601

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Model Identification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by