How to find the array indexes for each element in another array in MATLAB? -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 3 जवाब

दो सरणियाँ हैं: < / P>

  ए = [2,6 9, 10]; बी = [6,10,9,2,2,9,10,10,6,6,2,9];  

मैं निम्न सरणी को आउटपुट करना चाहता हूं:

  सी = [2,4,3,1,1,3,4,4,2, 2,1,3];  

यह काम कैसे करें?

मुझे समाधान मिला , [~, c] = ismember (बी, ए) ;


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -