# Finding Minimum Value Of A Function In An Interval In MatLab

Finding a minimum value of a function is a very specific topic in Calculus actually. But it requires handful of calculations, which makes this process is tough for long engineering calculations. You can also make this business in Matlab very easily with ‘fminbnd()’ command. In here, we will show you how to find minimum value of a function, in a specified interval with fminbnd() command in Matlab.

YOU CAN LEARN MatLab IN MECHANICAL BASE; Click And Start To Learn MatLab!

## How To Use ‘fminbnd()’ Command In MatLab?

The use of ‘fminbnd()’ command in Matlab is very easy to find required minimum value of a function or polynomial. To use fminbnd() command, you need to define a two variable as shown by red arrow above. The first one of these variables is the minimum value of your function. The second variable as shown by green arrow above is the for which value, the function takes the minimum value.

Type these variable names inside a square brackets as shown by red and green arrows above. Then equalize this with fminbnd() command, then type the function that you want to find minimum value of is as shown by blue arrow above.

This function can a function that created by you in Matlab. You can also use default functions such as sin(), cos() etc. in Matlab. You need to write that function’s name inside quotes. Put commas then write the minimum and maximum interval values to see minimum value of this fuction as shown in blue box above.

As you see, the minimum value of this function is given with first variable name that you defined, and for which value that function will take minimum value is also shown with second variable. The logic is very basic as you see above.

Do not forget to leave your comments and questions about finding minimum values of function in an interval with fminbnd() command in Matlab below. Your precious feedbacks are very important for us.

Posted

in

by