Multiply two polynomials p and q given in vector representation.
p=[-2 0 1 -1 3 2]
q=[1 0 -1 2 4]
result=[-2 0 3 -5 -6 5 -1 0 16 8]
Duplicate each element of a vector.
Celsius to Kelvin
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
Find the dimensions of a matrix
Create a Matrix of Zeros
Calculate the values of a polynomial.
Find scalar product of two polynomials a and b, given as vector array.
Display positive elements of matrix.
Find sum of negative elements in row.
Calculate the sum of elements of n*n Hilbert 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