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