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์ผ

0 ๊ฐœ ์ถ”์ฒœ

Well, as a basic framework it is fine... after making y a call to rectangularPulse... and after changing the title and ylabel...

์นดํ…Œ๊ณ ๋ฆฌ

๋„์›€๋ง ์„ผํ„ฐ ๋ฐ File Exchange์—์„œ Grid Lines, Tick Values, and Labels์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

์งˆ๋ฌธ:

2025๋…„ 1์›” 30์ผ

๋‹ต๋ณ€:

2025๋…„ 1์›” 30์ผ

Community Treasure Hunt

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

Start Hunting!

Translated by