Given three numbers a,b,n with b>a, create a vector y with n logarithmic spaced values between 10^a and 10^b.
Thus, if a = -2, b = 3 and n = 6, then
y = [10^-2 10^-1 10^0 10^1 10^2 10^3] = [0.01 0.1 1.0 10.0 100.0 1000.0]
So many choices
Remove the positive integers.
Determine the mean of matrix
Convert radians to degrees
Calculate the area of a circle
Matrix indexing with two vectors of indices (★★)
Generate a vector which contains a pyramid pattern (★★★★)
Create times-tables (★★★)
Generate n equally spaced "intervals" between -x and x (★)
Median computation (★★★)
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