寻找最小值索引。
    8 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    果博东方开户客服【80877·tv】
 il 15 Mag 2023
  
    
    
    
    
    Risposto: 果博东方游戏官网【80877·tv】
 il 15 Mag 2023
            想用matlab语言实现以下功能:
for i = 1 : n
A=[3,5,2,9,0,1,7]
end
求A的最小值位置
第一次循环找到的位置是5,第二次循环找到的位置是6,第三次循环找到的位置是3.。。。
0 Commenti
Risposta accettata
  果博东方游戏官网【80877·tv】
 il 15 Mag 2023
        仅供参考
a=[3,5,2,9,0,1,7;
   5,7,8,8,0,3,5];
for i = 1 : 2
    A=a(i,:);
    B=sort(A);
    c(i)=find(B(i)==A)
end
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!