optimization - A=lsqnonlin(@myfun,ao)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function optimization %Problem 14.12 %options =optimset('Display','iter'); x=[.1 .2 .4 .6 .9 1.3 1.5 1.7 1.8]'; y=[0.75 1.25 1.45 1.25 .85 .55 .35 .28 .18]'; plot(x,y,'o'); hold on ao=[0.3 0.4]';
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: A=lsqnonlin(@myfun,ao) F=A(1).*x.*exp(A(2)*x); plot(x,F); function F=myfun(A) %problem 14.12 continued x=[.1 .2 .4 .6 .9 1.3 1.5 1.7 1.8]'; F=A(1).*x.*exp(A(2)*x);...
View Full Document

This note was uploaded on 09/27/2011 for the course EGM 3344 taught by Professor Raphaelhaftka during the Spring '09 term at University of Florida.

Ask a homework question - tutors are online