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? Now with even more wrong husband
Back to basics 21 - Matrix replicating
Is the Point in a Circle?
Find hen's weight.
Can we make a triangle?
Find the coefficients for numerical integration using Simpson's rule
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