Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then
y = [2^0.5 5^0.5 7^0.5 1^0.5] = [1.4142 2.2361 2.6458 1.0000]
Back to basics 9 - Indexed References
Generate a NaN...on purpose
Return area of square
02 - Vector Variables 2
07 - Common functions and indexing 2
Create logarithmically spaced values
Create a vector of the first n naturnal numbers
Element-wise vector product
Create a vector with n repeated values of a number x
Create a vector of n alternating ones and zeros
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office