File:Wave packet.svg

From KYNNpedia

Original file(SVG file, nominally 5,478 × 3,964 pixels, file size: 29 KB)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Description Illustration of a wave packet.
Date (UTC)
Source Self made, based on Image:Photon paquet onde.png. Released in the public domain.
Author Oleg Alexandrov
Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
% Illustration of a wave packet

L = 1.7; % 2*L=length of domain
A = 1.2; % max amplitude

K = 1.3; % gaussian param
fast_wl = 52;
slow_wl = 4;

N = 500; % num of data points
lw = 40; % linewidth of curves

X = linspace(-L, L, N);
%Y = cos(X*slow_wl)./(1 + (X/K).^2);
q=1.5;
Y = A*cos(abs(X).^q*slow_wl).*exp(-K*X.^2);

num_P=1; % how many periods to keep
Y( find (abs(X) > ((2*num_P+0.5)*pi/slow_wl)^(1/q)) )=0;
Z = Y.*cos(fast_wl*X);

% KSmrq's colors
red    = [0.867 0.06 0.14];
blue   = [0, 129, 205]/256;
green  = [0, 200,  70]/256;
yellow = [254, 194,   0]/256;
white = 0.99*[1, 1, 1];
black = [0, 0, 0];

figure(1); clf; hold on; axis equal; axis off;
lw2=0.7*lw;
plot(X, Y, 'color', red, 'linewidth', lw2, 'linestyle', '--')
plot(X, -Y, 'color', red, 'linewidth', lw2, 'linestyle', '--')
plot(X, Z,  'color', blue, 'linewidth', lw)

saveas(gcf, 'Wave_packet.eps', 'psc2') % save as eps
%plot2svg(Wave_packet.svg')             % save as svg  (need the svg package for that)

Captions

Graphical representation of a basic wave packet

Items portrayed in this file

depicts

2 December 2007

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current06:40, 2 December 2007Thumbnail for version as of 06:40, 2 December 20075,478 × 3,964 (29 KB)wikimediacommons>Oleg AlexandrovTweak

The following page uses this file: