rect function on the interval x= -5:0.1:5.

3 ビュー (過去 30 日間)
Mahdin
Mahdin 2025 年 1 月 30 日
回答済み: Walter Roberson 2025 年 1 月 30 日
x=-5*pi:0.1:5*pi;
y=(pi/2)*sinc(x/2);
plot(x,y)
title('s𝑖𝑛((𝜋/2)𝑥)/𝑥 plot')
xlabel('x');
ylabel('sin((𝜋/2)x)/x')
grid on;
would this be correct when plotting Rect function using rectangularPulse on the interval x= -5:0.1:5?

回答 (1 件)

Walter Roberson
Walter Roberson 2025 年 1 月 30 日
Well, as a basic framework it is fine... after making y a call to rectangularPulse... and after changing the title and ylabel...

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by