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 ]
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Sum the elements in either diagonal of a square matrix
matlab indian players
Matlab Basics - Assigning Variables
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