minimum of the matrix

3 次查看(过去 30 天)
Mohamed Aburakhis
Mohamed Aburakhis 2016-4-21
编辑: dpb 2016-4-21
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

采纳的回答

dpb
dpb 2016-4-21
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 个)

类别

Help CenterFile Exchange 中查找有关 Assumptions 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by