I have a problem related to my following code... Code generation required variable 'B1' to be fully defined before sub scripting it.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ali Khan
am 10 Jul. 2017
Kommentiert: Walter Roberson
am 16 Jun. 2021
function B1 = SortSignificanceFirst(B)
[mB, ~] = size(B);
SI = zeros(mB,2);
for b=1:mB
[mBB, ~] = size(B(b,1));
SI(b,:) = [mBB b];
end
SI_Sorted = sortrows(SI);
for b=1:mB
B1(b,1) = B(SI_Sorted(mB-b+1,2),1);
end
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Classical Control Design 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!