Question about buffer fuction that used in documentation of Monte Carlo ROC Simulation in Help Center

조회 수: 1 (최근 30일)
When I was reading the example of the Monte Carlo ROC Simulation in Help Center of MathWorks. In the Loop Over Pulses section, there is a buffer function is use, which is
rcv_pulses = buffer(rcv_pulses(matchingdelay+1:end),size(rcv_pulses,1));
where rcv_pulses is a matrix and matchingdelay equals 19. So, as far as I know the output of the new rcv_pulses is a also matrix with matrix. But when I checked the code the rcv_pulses(matchingdelay+1:end) is a vector, why after the buffer function, it again becomes a matrix? Could anyone help me here and explain how this buffer function works here?

채택된 답변

奥 刘
奥 刘 2023년 3월 29일
I found that it just added 0 at the last column.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by