フィルターのクリア

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 回表示 (過去 30 日間)
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;

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by