Re: syntax problem
yeah now i figured out the other problem
i was squaring array with ^2 instead of .^2
thank you guys for your help in correcting my syntax cos(phi)^2 was the correct way of doing it
have hit 'helped me' tab for all of you
Added after 6 minutes:
actually that x was an array...i was using wrong operator for that..i needed to use element wise operation and that i just figured out.
with cos i didnt know how to use squared cos ..thanks echo and sal for helping me out