How to find the minimum of a vector A and index all the minimum values without using inbuilt function such as 'find' 'min' and recall duplicates too?

前端 未结 0 710
没有蜡笔的小新
没有蜡笔的小新 2021-02-14 18:23

My A = [10 1 6 8 2 3 1 3]. As we can see the minimum value is 1 and is seen twice at index 2 and 7.

My MATLAB code is below:

function [m,im] = myMinInd(A)
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题