To raise a base to a certain power in MATLAB, you can use the ** operator or the power function.
Using the ** operator:
main.m52 chars3 lines
Using the power function:
main.m60 chars3 lines
Both the ** operator and the power function can also accept arrays as inputs.
main.m201 chars10 lines
gistlibby LogSnag