Error using hilbert transform: "Subscript indices must either be real positive integers or logicals."

조회 수: 1 (최근 30일)
Hello,
I have some troubles using hilbert transform for the enclosed vector in a guide.
The used command is:
y=abs(hilbert(A))/max(abs(hilbert(A)))
but Matlab sends the following error: "Subscript indices must either be real positive integers or logicals."
I can't understand why am i getting this error because i have already used this command in a former program successfully.
Any ideas please?

답변 (1개)

Walter Roberson
Walter Roberson 2015년 10월 2일
You accidentally assigned to a variable named "hilbert", which has the effect of overriding the meaning of hilbert() as a routine.
  댓글 수: 8
Walter Roberson
Walter Roberson 2015년 10월 2일
We see this all the time. If it had been a case where the toolbox was not installed then the message would be about unknown variable or function.

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

카테고리

Help CenterFile Exchange에서 Hilbert and Walsh-Hadamard Transforms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by