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 ]
03 - Matrix Variables 4
Length of a short side
Matlab Basics II - Extract last 3 elements of a vector
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