I have found the error in my script which was semi-automatically translated
from the other person's MATLAB code.

The error is that c was assigned a value inside a function.
That is the function body contained the following instructions
  c<-nw*czr
  d<-nw*cz
  rFren<-0.5*(abs((cz-c)/(cz+c))^2+abs((d-czr)/(d+czr))^2)
  firstguess<-c( 0,0,0,3,0.5,  0 ,     0 ,  0.000001)

I have already run this function and obtained the results, it was rather
long process, therefore I don't want to rerun it.

I was not given any warnings. 
How did the interpreter treat this? 
Will the result change, if I change the variable from "c" to, say, "c." ?
This variable is not used anywhere else in the function.
-- 
View this message in context: 
http://www.nabble.com/Variable-c-and-function-c-tf4305781.html#a12256590
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to