How to reverse spdiags ?
The spdiags function extracts all nonzero diagonals from the m-by-n matrix A.
So if A=[1 2 3;4 5 6;7 8 9],
spdiags(A)=[7 4...
9 years ago
Solved
Determine the Result of a Move in Reversi
Note: This is closely related to <http://www.mathworks.com/matlabcentral/cody/problems/2538-find-the-next-legal-move-in-reversi ...
9 years ago
Solved
Tridiagonal matrix
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 diagona...
Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.
9 years ago
Solved
03 - Matrix Variables 2
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_3b.png>>
A 9x9 matrix of zeros, but with the following v...
9 years ago
Solved
Reverse the Words (not letters) of a String
*Description*
Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...