How can I plot a sin function like this x=Acos(Pi*t/T)

1 回表示 (過去 30 日間)
yujia
yujia 2014 年 9 月 20 日
回答済み: Image Analyst 2014 年 9 月 20 日
I have no idea how to put amplitude and T in my plot.
v(t)=Acos(πt/τ)Π(t/τ)
V(f)=(Aτ/2)[sinc(fτ-0.5)+sinc(fτ+0.5)]
I need to plot V(f)
  1 件のコメント
Image Analyst
Image Analyst 2014 年 9 月 20 日
Is τ the Greek letter tau? And is t time? And what is capital T and Π? Is Π the product function or a capital pi? And what values of f do you want to use?

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

回答 (1 件)

Image Analyst
Image Analyst 2014 年 9 月 20 日
Perhaps this:
tau = 1;
f = linspace(-3*pi, 3*pi, 800);
A = 10;
V = (A*tau/2) .* sinc(f*tau-0.5)+sinc(f*tau+0.5);
plot(f, V, 'b-', 'Linewidth', 3);
grid on;
xlabel('t', 'FontSize', fontSize);
ylabel('v', 'FontSize', fontSize);

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by