how i can clip sinewave from xaxis
Show older comments

5 Comments
Qassem Rajab
on 19 Dec 2020
Qassem Rajab
on 19 Dec 2020
Edited: Qassem Rajab
on 19 Dec 2020
Matt Gaidica
on 19 Dec 2020
Les Beckham
on 19 Dec 2020
There are so many things wrong with this apparent homework question that I'm not sure how to even begin to help you. For example:
- Are alpha and beta specified as fractions of a period, fractions of pi, or some other unspecified units?
- What is a "general matlab code"?
- I would not call this a "clipped" sine wave. To me, a "clipped" sine wave is one that has its amplitude limited at some maximum value. This looks like a sine wave that is fed through some type of hysteresis or relay.
Now, moving on to your question in Matlab Answers.
- Where is your attempt at solving this in Matlab code? If you provide it and tell us what isn't working or what you don't know how to fix, the nice people here will be happy to help you fix it.
- Can you write the Matlab code to generate a sine wave?
- Do you know how to use logical indexing to test when certain conditons are true and change the values of an array based on those conditions? For example: signal(index < alpha*dt) = 0.
- If you figure out how to generate the "clipped" signal, do you know how to calculate the THD?
Qassem Rajab
on 20 Dec 2020
Accepted Answer
More Answers (0)
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!