function y = cube(x) // // calculate the third power of the given number // // Arguments: // // x (input) value to be cubed // // y (output) the result of the cube // y = x^3; endfunction