To square a number in Matlab, you can simply raise it to the power of 2 using the "^" operator or by using the "power" function.
Here's an example:
main.m46 chars4 lines
This will output the value of y which is the square of x (25 in this case).
gistlibby LogSnag