For Programmers: Free Programming Magazines  


Home > Archive > Matlab > November 2005 > fminsearch help needed









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author fminsearch help needed
drag2f2f

2005-11-29, 2:00 pm

I had it working but forgot to save and cannot remember how I did it, this is my script before modifying it for the fminsearch.

h=7
l=10
T2=10000
theta=10:10:80
W=4350
T1=(W.*h)./(l.*sind(theta))
Ry=W-T1.*sind(theta)
Rx=T1.*cosd(theta)-T2
R=(Ry.^2+Rx.^2).^(1./2)

I want to include a function in the script that will give me the value for theta when R is at its minimum.
Thanks in advance.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com