Borrar filtros
Borrar filtros

how to solve this error

2 visualizaciones (últimos 30 días)
Redflower
Redflower el 24 de Feb. de 2019
Comentada: Redflower el 5 de Mzo. de 2019
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 comentarios
Walter Roberson
Walter Roberson el 5 de Mzo. de 2019
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 el 5 de Mzo. de 2019
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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Productos


Versión

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by