MATLAB: What is the reason of putting a dot when writting an equation using matlab? for example: y=x.*z+c.^2

a dot (.) an equation

what is the reason of putting a dot when writing an equation using matlab? for example: y=x.*z+c.^2, thanx

Best Answer

The dot indicates element-wise as opposed to array operations.
See the documentation on Array vs. Matrix Operations for details.