help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems on minimum value of function


From: Nicholas Jankowski
Subject: Re: problems on minimum value of function
Date: Tue, 27 Mar 2012 00:30:07 -0400

sounds like you're asking us to do your homework :)

the function fminbnd is implemented in Octave. actually, I just copied
and pasted all of the commands from your email into Octave here and it
ran fine, found the local minimum, seems fine.

note that I am using a newer Ocatve build (3.6.1 on Windows)

nickj



On Tue, Mar 27, 2012 at 12:04 AM, hayoun Woo <address@hidden> wrote:
> 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.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave


reply via email to

[Prev in Thread] Current Thread [Next in Thread]