I have created a matrix with a class called Lattice. The lattice is filled with objects of type 'Dipole' which is created with another class. The problem I am having is with boundary conditions when I look for a neighbour. e.g If i pick a dipole on the top row, I want its 'above' neighbour to be...
Here is a link the code which I am trying to modify. It is the radial average of a matrix function.
http://uk.mathworks.com/matlabcentral/fileexchange/46468-radialavg-zip/content/radialavg.m
I want to restrict the function to only look within certain angles, e.g. 15 degrees either side of the...
Hi. I have this code in matlab:
/ /
I=dlmread('C:\Users\rshah\Desktop\Polymer Project\monteCarloCode\E=1e8.txt');
F=fft2(I); F = fftshift(F); % Center FFT
F = abs(F); % Get the magnitude since F is complex
F = log(F+1); % Use log, for perceptual scaling, and +1 since log(0) is undefined...
This what I enter into the command box:
gnuplot> set pm3d map
gnuplot> splot 'C:\Users\raf\Desktop\PolymerProject\monteCarloCode\directionInitial.txt'
As I said I've tried various different spacings in the .txt file.
I have a .txt file which is 50 rows x 50 columns filled with entirely 0's and 1's.
I have tried to plot the data with and without spaces between each column.
I keep getting this message:
gnuplot> splot 'C:\Users\raf\Desktop\PolymerProject\monte carlo code\directionInitial.txt' with pm3d...
The integral is now \int d\theta (c_2 + \frac{c_1^2}{u^2 -1})^{-1/2}= \int dt As I find it. But i get this simplifying to \int du \frac{1}{u^2 - a^2} for the LHS where a^2 is a combination of the other constants. But this is a logarithm when integrating which doesn't make sense for the answer.
I start again and get \dot \theta = c_1 \int \frac{u}{(1-u^2)^{3/2}} \frac{dt}{du}du But still abit stuck. If I sub in du/dt I keep getting a theta dot term. But I can't just assume u dot is independent of u and take it out the integral either. Brain is really hitting brick wall after brick...
You're right it was. What I get now which I am pretty sure is correct is this horrible integral
\theta = \frac{1}{\omega} \int \sqrt[]{ c_1 - c_2/sin^2{\theta} } \ d \theta
Which I also have no idea how to solve :S
I have a free particle moving on the surface of a sphere of fixed radius R. Gravity is ignored and m/2 is left out since its constant.
The lagrangian is L = R^2 \dot{\theta^2} + R^2 sin^2{\theta} \dot{\phi^2}
Using the Euler Lagrange equations I obtain
sin^2{\theta} \dot{\phi} = A = const \...