How can i obtain a signal like this? i have some problem with the code.

1 回表示 (過去 30 日間)
Jessie Bessel
Jessie Bessel 2017 年 10 月 20 日
コメント済み: Jessie Bessel 2017 年 10 月 20 日

採用された回答

Jos (10584)
Jos (10584) 2017 年 10 月 20 日
T = 1 ;
n = 5/2 ;
t = linspace(0,n*T,1000) ;
x = sin(2*pi*t/T + pi) ;
q = t < T/2 | t > T ;
x(q) = 0 ;
plot(t,x,'b.-')
set(gca,'xtick',[0 .5 1 n],'xticklabel',{'0','T/2','T','5T/2'})

その他の回答 (1 件)

Birdman
Birdman 2017 年 10 月 20 日
編集済み: Birdman 2017 年 10 月 20 日
Try this model. The sine wave is automatically plotted when you run and close the model.
  3 件のコメント
Jos (10584)
Jos (10584) 2017 年 10 月 20 日
Is it indeed a sine-wave between T/2 and 2*(T/2)? (Your curve suggests an ellipse-like curve)
Jessie Bessel
Jessie Bessel 2017 年 10 月 20 日
a sine wave

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by