Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagonal
u = [1 4 5 6]
v = [3 8 2]
the result would be:
[ 1 3 0 0
3 4 8 0
0 8 5 2
0 0 2 6 ]
Is my wife right?
Specific Element Count
Vectorize the digits of an Integer
Sum of odd numbers in a matrix
Find the coefficients for numerical integration using Simpson's rule
Can we make a triangle?
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