Given two vectors x and y, compute their element-wise product z.
Thus, if x = [1 3 5] and y = [0.5 -1 2], then
z = [1*0.5 3*(-1) 5*2] = [0.5 -3 10]
Make a Palindrome Number
convert matrix to single column
03 - Matrix Variables 6
Find Out sum of principal diagonal element of given matrix
Sum of series V
Get the elements of diagonal and antidiagonal for any m-by-n matrix (★★★★)
Approximate functions 1 (★★★)
Create times-tables (★★★)
Sum of elements in a vector (★)
Triangle Numbers (★★)
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