필터 지우기
필터 지우기

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 CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by