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

์กฐํšŒ ์ˆ˜: 4 (์ตœ๊ทผ 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 Exchange์—์„œ Grid 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