Delete x value in given vector y.
Exapmle x=5; y=[ 1 2 5 6 74 5 2 5]
result=[1 2 6 74 2]
Bottles of beer
Create matrix of replicated elements
Basic arrays operations.
Switch matrix to a column vector
For given xx,x, y vectors build spline of x and y and find yy values for xx vector.
Select primes from the matrix.
Compare two strings.
Sum positive elements of matrix.
Find product of eigenvalues of n*n magic matrix.
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