Hi...how can i convert this part of mathematica code to matlab?
f=a(uold[[1]]-Total[(phi[[2;;j]]-phi[1;;j-1])/(sqrt[j-Range[1,j-1]]+sqrt[j-Range[2,j]])+sqrt[pi]uold[[1]]/4;
thanks
The code you posted is not even valid Mathematica code. So will be even harder to convert it. But you can try 2 options. See the package ToMatlab , here is a link to how to use it and download it: http://mathematica.stackexchange.com/questions/63603/problem-in-downloading-tomatlab-package/63613#63613 and the second option for more up-to-date and more advanced features is to use http://matlink.org/
How about the other direction? Matlab to Mathematica?