Extract the main diagonal of a matrix
Extract the main diagonal of a matrix and return as an array.
For example, the main diagonal of the following matrix would be:
...
4 years ago
Solved
Self-Description
This is a simplified version of the <http://xkcd.com/688/ *xkcd comic* by the same name>.
Simply return the angle (in degrees...
leap year
find the number of leap years within the given time interval
4 years ago
Solved
07 - Common functions and indexing 2
Define _eMat_:
<<http://samle.dk/STTBDP/Assignment1_3e.png>>
Calculate eMean as the mean across the rows of _eMat_. The an...
construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x.
E...
4 years ago
Solved
Box!
Given a box, find the volume of the cube. With each side = a.
4 years ago
Solved
05 - Vector Equations 1
Define the vector _cVec_:
<<http://samle.dk/STTBDP/Assignment1_2c.png>>
(all the numbers from 5 to -5 in increments of -0....