Problems in for loop with risetime: Signal processing toolbox

조회 수: 1 (최근 30일)
toka55
toka55 2017년 10월 24일
편집: toka55 2017년 10월 24일
I'm trying to calculate the rise time of 10000 pulses given as a matrix of size 80x10000.
I have tried to use the function "risetime" from signal processing toolbox. For calculation I use this code:
for k=1:size(PS1,2)
PS2(:,k) = risetime(PS1(:,k),80);
end
As a result I get the error message: In an assignment A(:) = B, the number of elements in A and B must be the same.
The resulting matrix PS2 is of size 1x1011 but it should have 1x10000.
What is the problem?
  댓글 수: 2
Jan
Jan 2017년 10월 24일
How could you get a size for the resulting matrix, if the code stops with an error?
toka55
toka55 2017년 10월 24일
편집: toka55 2017년 10월 24일
I get the error message and a resulting matrix but the matrix is not complete. Meantime, I realised that I get sometimes two values out of one pulse and then the matrix dimensions dosen't fit anymore. Any suggestions ?

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by