g; and &beta; = 180&deg; (preferential alignment of the molecular z axis with the sample z axis). The larger the magnitude of &lambda;, the sharper the distributions.
</p>

<p>
To plot the orientational distribution for a given value of &lambda;, use
</p>

<pre class="matlab">
lambda = 2;
beta = linspace(0,pi,1001);
U = -lambda*plegendre(2,0,cos(beta));
%U = -lambda*(3*cos(beta).^2-1)/2;  % equivalent
P = exp(-U);
plot(beta*180/pi,P);
</pre>

<p>
If <code>Exp.Ordering</code> is a function handle, <code>pepp