minimum of the matrix
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohamed Aburakhis
am 21 Apr. 2016
Bearbeitet: dpb
am 21 Apr. 2016
How to get the number of the minimum element in matrix for example
for i=0:10
f(i)=i^2-10*i+2
argument to find i that minimize the function
end
0 Kommentare
Akzeptierte Antwort
dpb
am 21 Apr. 2016
i=0:10;
f=i.^2-10.*i+2;
[fmin,imin]=min(f); % minimum to nearest integer value
To solve for the minimum, couple of ways. Using numerical w/o the symbolic toolbox one is
fsolve(@(x) polyval(polyder([1 -10 2]),x),1)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Assumptions 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!