function [ med ] = CalculMedian( mat )
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Please can you help me,I have this probleme " Subscript indices must either be real positive integers or logicals" when I execute this function
function [ med ] = CalculMedian( mat ) vect=mat(:); % Transformer un matrice en un vecteur A=tri_bulle(vect);% tri a bulle de vect n=length(A); if mod(n,2)==0 med=A(n/2); %pair else med=A((n+1)/2); %impair end end
0 Commenti
Risposte (1)
Vedere anche
Categorie
Scopri di più su Numeric Types in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!