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 ]
Distance walked 1D
Who invented zero?
03 - Matrix Variables 5
Sum the 'edge' values of a matrix
Calculate the sum of elements of n*n Hilbert matrix.
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