How to generate sine wave in Simulink by using the MATLAB function?

3 ビュー (過去 30 日間)
Sajjad
Sajjad 2014 年 12 月 9 日
コメント済み: Santiago Morocho 2016 年 1 月 19 日
I want to generate sine wave in Simulink by using the MATLAB function. I could not get the actual sinewave. And could not find the problem also, Please see the picture attached below to get a clear picture of my problem. And the code I used for MATLAB function works fine in MATLAB.

採用された回答

Orion
Orion 2014 年 12 月 9 日
You could just use the sine wave block ?
If you really want to use a matlab function, you need to do :
here, the Matlab function generates the exact same sine as the sine wave block.
  2 件のコメント
Sajjad
Sajjad 2014 年 12 月 10 日
I actually need to generate waveform like this,
They are basically all positive half cycles of full sine period. And after each half a there will be zero intervals as shown in the figure above. I need to generate this kind of waveform in simulink. Could you please suggest me how to do so? It seems with MATLAB function I won't be able to do such because of the fixed clock. Thanks in advance.
Kind Regards
Rafin
Santiago Morocho
Santiago Morocho 2016 年 1 月 19 日
which is the time in the clock

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSources についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by