pm_vs_besselj.m 248 Bytes
clc
clear all
close all

N = 10;

set(0, 'defaultlinelinewidth', 5);

phi = [0:0.01:1]*2*pi;
m = 1;

for n = 2:N
	freqs = -n:n;
	amp = besselj(freqs, m);
	plot(phi, abs(sum(amp'.*exp(1i.*phi.*freqs'))))
	hold on
end

legend(strsplit(num2str(2:N)))