Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Shehab Tarek
Shehab Tarek am 19 Mai 2020
Beantwortet: Ameer Hamza am 20 Mai 2020
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

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 20 Mai 2020
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.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by