Borrar filtros
Borrar filtros

i have 1d array of 16 elements. i need to find index of minimum element of first 2 elements, then index of minimum element of next 2 elements and so on. i used the following coding. but it did not work. please send me the suitable coding.thank u.

1 visualización (últimos 30 días)
if ersum(:,k)<ersum(:,k+1) miner(:,count)=find(ersum(:,k)); %minind=find(miner); else miner(:,count)=find(ersum(:,k+1)); end k=k+2;

Respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by