i have the store of sum and want to know the index

1 回表示 (過去 30 日間)
Shehab Tarek
Shehab Tarek 2020 年 5 月 19 日
回答済み: Ameer Hamza 2020 年 5 月 20 日
i have the store_sum=[ 0.18,0.27,0.43,0.57];
and i want to know the index
starting from colum colum 2 in this matrix

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 20 日
M % name of your matrix
store_sum=[ 0.18,0.27,0.43,0.57];
[~, idx] = ismembertol(store_sum, M(:,2));
idx is index of elements of store_sum in the 2nd column of M.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by