"Sagar Chand" <email@example.com> wrote in message <firstname.lastname@example.org>...
> gives a square cut diagonally half with lower right side being white and other being black
> gives a square with circle in centre
> What is the difference between (x^2+y^2) and (x.^2+y.^2) in matlab?
The ^ operator (without the period) is matrix power. The .^ operator (with the period) is element-by-element power. Hence you will get different results if x or y are not scalar.