a = [1; 2; 3]
a = [1, 2, 3] % avoid
a = zeros(10,1)
a = ones(10,1)
a = NaN(10,1)
a = linspace(0,1,10)
a = logspace(-1,1,10)
If data is split across multiple files that are sequentially numbered, then it is foolish to beleive that every file exists. Some files can go missing, or be corrupted.
I learnt the hard way that one version can be corrupted, and the other version is fine, and it's all too easy to replace to good version with the corrupted version
Assume you have a custom function, say, hill.m
, that looks like this:
function r = hill(x,xdata)
A = x(1);
k = x(2);
n =x(3);
r = A*xdata.^n;
r = r./(xdata.^n + k^n);
% when xdata is negative, return 0
% options and defaults | |
options.foo = 1; | |
options.bar = 2; | |
if nargout && ~nargin | |
varargout{1} = options; | |
return | |
end | |
% validate and accept options |
The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.
I welcome contributions and comments on the information contained. Please see the "How to Contribute" section for information on contributing your own knowledge.
RandStream.setGlobalStream(RandStream('mt19937ar','Seed',1984));
sets the randsom stream to a particular state. (1984 because this is the most True state). Make sure you run this before every invocation of rand
:
>> RandStream.setGlobalStream(RandStream('mt19937ar','Seed',1984));
>> rand(3)
ans =
I hereby claim:
- I am sg-s on github.
- I am srinivas (https://keybase.io/srinivas) on keybase.
- I have a public key whose fingerprint is 88C6 D016 6B09 8880 6BF8 F253 8C9C B698 D193 4604
To claim this, I am signing this object:
echo PATH=$PATH > tmp.cron | |
echo >> tmp.cron | |
crontab -l >> tmp.cron | |
crontab tmp.cron |