Using linprog function in MATLAB

Status
Not open for further replies.

bmsec

Newbie level 6
Joined
Jan 18, 2011
Messages
13
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,402
How to find the minimum/maximum bounds for h(m) using linprog function in MATLAB ? I have shown the hand calculations. Kindly guide me how to
proceed :


delta_p <= Summation(h(m).T(w)) – Hd(w) <= delta_p
In passband, Hd(w)=1 ; delta_p=0.05

1 - 0.05 <= Summation(h(m).T(w)) <= 1 + 0.05

For the first coefficient, m=0, sweeping w from 0 to pi, in steps of pi/1000 ,
taking T(w)= 2cos(M-m 0.5), M=5,

0.475 <= h(0). cos(5-0-0.5) <= 0.525

Step_size_w = passband_cutoff/1000 ; w varies from 0 to passband_cutoff, in steps of Step_size_w
[/B]


For, the 1000 step values of w, I got 1000 bound pairs for h(0).

Kindly advise how to solve linprog function in MATLAB, to get the bounds for h(m).
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…