Quick start
From FinMath
Cut and paste the following at the Matlab prompt:
[s,msg]=mkdir(prefdir,'fin_math');delete(which('fmgrow.m')); urlwrite('http://www.financialmathematics.com/code/fin_math/fmgrow.m',fullfile(prefdir,'fin_math','fmgrow.m')); addpath(fullfile(prefdir,'fin_math')); fmgrow;
NOTE: Use code from this site at your own risk! Code may be contributed by malicious users. Inspect all code for system calls, file operations, obfuscated code and other suspicious items before using. No information on this site should be construed as investment advice.
Additionally be sure to review the disclaimers. You might wish to include these lines in your startup.m file.
[edit] Demonstrations
Having cut and paste the above code, all matlab demonstrations will now run. One may also search for keyword "demonstration" or "code:" in the search box to the left.
[edit] What does this do?
The script fmgrow.m downloads the simple utility fmuse.m to a subdirectory of your prefdir, as may be confirmed by typing
cd(prefdir)
Subsequent calls to fmuse.m will also download files as needed, but always to a subdirectory of prefdir. An example of usage is provided here and as with all code on this site you may inspect and download directly at http://www.financialmathematics.com/code/fin_math/.
