필터 지우기
필터 지우기

Finding the maximum of a function with vector variables

조회 수: 1 (최근 30일)
farzad
farzad 2014년 11월 11일
Hi all
I have two vectors x and y , which y is actually is a function of x , I wanted to find the extremum point of the function , I thought it's possible with fminunc but it didn't work , the error was that @myfun should be a function , how should I relate the two vectors and find the extremum point (here is a maximum)
the whole problem is also like this : we have x1,y1 that has one maximum (the function is a decreasing and is maximum at x1=0
then x2,y2 and ....xi,yi
then I have to plot another function that is the range that max(xi) changes within because x=0:0.1:xmax for every x vecor and for the y axis , a normalized of y/ymax for each xi,yi
please can you help me with a code ?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by