필터 지우기
필터 지우기

how to solve this error

조회 수: 2 (최근 30일)
Redflower
Redflower 2019년 2월 24일
댓글: Redflower 2019년 3월 5일
I got this error Subscript indices must either be real positive integer or logical
I am tried to removed the range of desired signal from dataset matrix and find the power of that range. then the remaining will be interferance and also i want to find the power of remaining range
the error occured when i want to find the power of interferance
PI=mean(mean(SysSetup.Dataset(:,RI).^2))
this is my code
  댓글 수: 25
Walter Roberson
Walter Roberson 2019년 3월 5일
What do you think the result from that linspace() shoud be?
Are you expecting a series of consecutive integers? Are you expecting a series of integers with a constant gap between them? Are you trying to "sample" a range of integers at as close as you can get to equal partitions? Are you trying to extract the index numbers of all samples belonging to a particular class when the SysSetup information knows where the class starts and how long it is?
Redflower
Redflower 2019년 3월 5일
I tried to to extract all sample belonging to particular class when the SysSetup information knows where the class start
for example if i select 2 and 6 [ 2 6]
i expect to take all samples of class 2 from 1001- 2000 and 5001-6000 and put them in one matrix
same if i select 1, 2 ,4 [1 2 4]
i expect to take all sample of class 1 from 1-1000 , 1001-2000 for class 2 and 3001-4000 for class 4 and put all of them in one matrix

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

답변 (0개)

카테고리

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

제품


릴리스

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by