Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...
2 years ago
Solved
First N Perfect Squares
*Description*
Return the first N perfect squares
*Example*
input = 4;
output = [ 1 4 9 16 ];
2 years ago
Solved
Find max
Find the maximum value of a given vector or matrix.
2 years ago
Solved
07 - Common functions and indexing 5
Create the vector _lin_:
<<http://samle.dk/STTBDP/Assignment1_7e.png>>
(the integers from 1 to 20)
Make every other val...
2 years ago
Solved
05 - Vector Equations 3
Define the vector _dVec_:
<<http://samle.dk/STTBDP/Assignment1_2d.png>>
(Logarithmically spaced numbers between 1 and 10)
...
2 years ago
Solved
07 - Common functions and indexing 6
Create a variable _m_ as a magic square with the size 6 x 6
Magic squares are defined as square matrices, where the sum of a...
2 years ago
Solved
06 - Matrix Equations 3
Define the matrices _aMat_, _bMat_, and _cMat_:
<<http://samle.dk/STTBDP/Assignment1_3a.png>>
( _aMat_ = 9x9 matrix full o...
2 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...
2 years ago
Solved
06 - Matrix Equations 2
Define the vectors _aVec_ and _bVec_:
<<http://samle.dk/STTBDP/Assignment1_2a.png>>
and
<<http://samle.dk/STTBDP/Assig...
2 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...