In a time integration cycle I need to solve a non linear algebraic equation.
I know that fsolve can easily do it but I have two problems with it.
1) At each time step fsolve displays (and consequently prints on the output file):
Optimization terminated: first-order optimality is less than...
Hello,
I wrote a molecular dynamics code in matlab and now I want to translate it into FORTRAN90 to speed up the computational procedure. The problem is that in my program I use a cell array. In every cell of the cell array I have a vector. The dimension of these vectors changes at every time...
I have a problem saving a cell array.
r is a cell array organized as a column containing vectors of different length.
I tried to use the command:
dlmwrite('r.m',r)
but Matlab says that it cannot convert it into a matrix.
I understand the problem but I don't know how to solve it.
Thanks
The question is about the Rayleigh random distribution.
If I use the command v=b^2*raylpdf(x,b) with x=[0:0.1:1000]
and b=249 I obtain a maxwellian distribution for the velocity v.
If now I want to do the same thing with the random generator raylrnd using the command v(i)=b^2*raylrnd(b) into a...