finding the minimum value of a function and corresponding x_min
1 次查看(过去 30 天)
显示 更早的评论
now after running this code we got plot like parabola by figure anyone can find what is the minimum value of phi1 and at which x it is minimum can any one suggest me how to find the minimum phi1 and what is x_min by code not by figure.so far i am using this code but by this i get incorrect value of x_min that's why i also get wrong min_phi1,x_min should be L/2 and this can be verified by the plot code is attached with question
0 个评论
采纳的回答
KSSV
2017-2-8
doc min.
[val,idx] = min(phi1) ; % get minimum value of phi1 and it's index
x_min = x(idx) % x at which phi1 is minimum
phi1_min = val % minimum phi1
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!