Commit 73d57d7399b2e791c3ba32f19a7f58040c39259a
1 parent
01f7800107
Exists in
master
start from {J0,J1}
Showing 1 changed file with 2 additions and 2 deletions Inline Diff
PM/pm_vs_besselj.m
clc | 1 | 1 | clc | |
clear all | 2 | 2 | clear all | |
close all | 3 | 3 | close all | |
4 | 4 | |||
N = 10; | 5 | 5 | N = 10; | |
6 | 6 | |||
set(0, 'defaultlinelinewidth', 5); | 7 | 7 | set(0, 'defaultlinelinewidth', 5); | |
8 | 8 | |||
phi = [0:0.01:1]*2*pi; | 9 | 9 | phi = [0:0.01:1]*2*pi; | |
m = 1; | 10 | 10 | m = 1; | |
11 | 11 | |||
for n = 2:N | 12 | 12 | for n = 1:N | |
freqs = -n:n; | 13 | 13 | freqs = -n:n; | |
amp = besselj(freqs, m); | 14 | 14 | amp = besselj(freqs, m); | |
plot(phi, abs(sum(amp'.*exp(1i.*phi.*freqs')))) | 15 | 15 | plot(phi, abs(sum(amp'.*exp(1i.*phi.*freqs')))) | |
hold on | 16 | 16 | hold on |