๐น๐‘”.๐‘š(๐œƒ, ๐œƒ๐‘š) = ๐น๐‘ƒ๐‘€ โˆžโˆ‘ ๐‘š=๐‘œ๐‘‘๐‘‘ 1๐‘š cos(๐‘š๐‘ ๐‘Ÿ (๐œƒ โˆ’ ๐œƒ ๐‘š )

์กฐํšŒ ์ˆ˜: 9 (์ตœ๊ทผ 30์ผ)
Muhammad Asif
Muhammad Asif 2022๋…„ 2์›” 5์ผ
๋‹ต๋ณ€: TED MOSBY 2025๋…„ 6์›” 23์ผ
How to apply fourier series on this equation at matlab to draw a graph.

๋‹ต๋ณ€ (1๊ฐœ)

TED MOSBY
TED MOSBY 2025๋…„ 6์›” 23์ผ
Hi,
This is the Fourier series of a periodic even-symmetric square wave. As this series is already written as a fourier series, so it doesn't need any further fourier analysis so we can simply evaluate and plot it in MATLAB as below:
Zr = 3; % Constant
theta_m = 0;
N = 50; % Number of odd harmonics to include
% Evaluation range
theta = linspace(0, 2*pi, 1000);
% Fourier series: sum of 1/m * cos(m * Zr * (theta - theta_m))
m = 1:2:(2*N - 1);
series_sum = zeros(size(theta));
for k = 1:length(m)
series_sum = series_sum + (1/m(k)) * cos(m(k) * Zr * (theta - theta_m));
end
plot(theta, series_sum, 'LineWidth', 1.5)
xlabel('\theta (rad)')
ylabel('Fourier Series Value')
title(['Sum_{m=1,3,...,' num2str(m(end) ) '} (1/m) * cos(m Z_r (\theta - \theta_m))'])
grid on
The output should look like this:
Hope this helps!

์นดํ…Œ๊ณ ๋ฆฌ

Help Center ๋ฐ File Exchange์—์„œ Mathematics์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

Community Treasure Hunt

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

Start Hunting!

Translated by