[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problems on minimum value of function
From: |
hayoun Woo |
Subject: |
problems on minimum value of function |
Date: |
Mon, 26 Mar 2012 21:04:49 -0700 (PDT) |
hi, I cannot solve this problem.
No way to find code which can evaluate minimum value of these below.
Q: Define a function hw1fun for y=x^2+x+1 and find the minimum value of the
function for the interval
0<=x<=1
I defined function as
function y=hw1fun(x)
y=x^2+x+1;
end
I tried to use [x,v]=fminbnd(@hw1fun,0,1) but it only works in MATLAB
what is the similar code that uses in octave?
I use octave 3.2.4 for windows
please help me. I'm looking forward to get answer :)
--
View this message in context:
http://octave.1599824.n4.nabble.com/problems-on-minimum-value-of-function-tp4507901p4507901.html
Sent from the Octave - General mailing list archive at Nabble.com.
- problems on minimum value of function,
hayoun Woo <=