Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d95cba9
commit 92fced3
Showing
3 changed files
with
68 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
% set reference point in time | ||
tic | ||
|
||
% seed RNG with current time so we un-predictable random numbers, | ||
% i.e. each time we run the script N will be different | ||
rng('shuffle') | ||
|
||
% random array size | ||
N = fix(rand(1)*1e9) | ||
|
||
% try to allocate array of size N -- must suppress output else MATLAB | ||
% tries to print out the array in full... | ||
a = NaN(N,1); | ||
|
||
% print time elapsed since `tic` | ||
toc |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters