[R] Converting code from MATLAB to R

2005-06-08 Thread Martin Englund
Hi, I'm having trouble converting code from MATLAB to R; I want to find the equivalence to MATLAB's function 'fsolve'. I've tried 'nlm', on the squared argument, in R but i did not get the same results. Thankful if helped. Best regards, Martin Englund

[R] Converting code from MATLAB to R

2005-06-08 Thread Martin Englund
Hi, I'm having trouble converting code from MATLAB to R; I want to find the equivalence to MATLAB's function 'fsolve'. I've tried 'nlm', on the squared argument, in R but i did not get the same results. Thankful if helped. Best regards, Martin Englund

Re: [R] Converting code from MATLAB to R

2005-06-08 Thread Robin Hankin
Hi Martin optim() should do the trick [and this isn't in R-and-octave2.txt; I'll update when I get a minute] HTH rksh On Jun 8, 2005, at 02:27 pm, Martin Englund wrote: Hi, I'm having trouble converting code from MATLAB to R; I want to find the equivalence to MATLAB's function