@shirin91 wrote:
Thanks for your reply. NaN is due to arcsin block:
No, I am looking at the input to arcsin. What values do you have there? Place an indicator or probe!
Are they really in the range -1 to 1? (you still have not told us the typical values for your controls).
There is no angle in the world where sin is outside [-1, 1]!
About half of your values are negative. The square root of a (non-complex) negative number is also NaN.
You also still have not explained the experiment and theory you are trying to apply. So far all this makes no sense!