How to modify a sine wave

I have been trying to shape the amplitude of a sine wave so I have the maximum point a bit flatened during both cycles but I am unsuccessful in matlab. I will appreciate some support

1 件のコメント

Walter Roberson
Walter Roberson 2023 年 4 月 5 日
It looks to me as if instead of it being a sine with a pinched top, as if instead it is is just-a-bit-more than 1/4 of a period of a sine, followed by just-a-bit-more than the next 1/4. Sort of like as if you had plotted 0 to 105 degrees, then 85 to 185 degrees, then 175 to 275 degrees, and so on. A little bit of drawing the same signal range twice.

サインインしてコメントする。

回答 (2 件)

Cris LaPierre
Cris LaPierre 2023 年 4 月 5 日

1 投票

Pick a threshold, and then set anywhere the absolute values of your signal are greater than the threshold equal to the threshold.
Image Analyst
Image Analyst 2023 年 4 月 6 日

0 投票

Hint:
signal = min(signal, 0.7);

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

リリース

R2022b

タグ

質問済み:

2023 年 4 月 5 日

回答済み:

2023 年 4 月 6 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by