How do i write the code for a soft limiter under the following conditions?
10 views (last 30 days)
Show older comments
I want to write the code for:
A=10^(-3/10).*var(w); % A = 3dB x Power in
if abs(w) > A then plot A if abs(w) < A then plot abs(w)
note: w is my signal, assume it is defined already
I have attempted this myself using if and elseif statements however I am getting errors. I am a bit confused as to where I put the brackets.
A=10^(-3/10).*var(w); % A = 3dB x Power in
{
{
if abs(w) > A
plot A
elseif abs(w) < A
plot abs(w)
}
end
}
1 Comment
Jan
on 19 Mar 2011
Please post what you have done and a copy of the error message. Then assisting would be much easier.
Accepted Answer
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!