"MATLAB"

Random (and irregular) snippets of code

Saturday, 13 August 2016

Generate sine wave/tone Matlab

›
Download genTone.m How-to Generating tones or sine waves of specific frequencies in Matlab is conceptually simple, but generating the c...
3 comments:
Monday, 31 August 2015

Matlab plot formats and how to quickly save high quality figures

›
Download hgx.m See also  New graphics in Matlab 2014b and 2015 and creating nicer figures in one line of code  for ng.m and og.m The new...
Monday, 25 May 2015

Alternative function: Normal cumulative density function (normcdf)

›
Download normcdf2.m Details This function implements the basic functionality of the normcdf function in Matlab's stats toolbox. Simi...

Alternative function: Normal probability density function (normpdf)

›
Download normpdf2.m Details This function implements the basic functionality of the normpdf function in Matlab's stats toolbox. Simi...
Saturday, 23 May 2015

Converting hexadecimal to binary

›
See also:  Base conversion of positional number systems  for other conversion functions. Download hex2bin2.m Hexadecimal and binary He...

Converting hexadecimal to decimal

›
See also:  Base conversion of positional number systems  for other conversion functions. Download hex2dec2.m Hexadecimal numbers ...
Friday, 22 May 2015

Event / spike triggered average

›
Download evTrigAvg.m What caused an event? Generally, event triggered averages are used to try and determine what caused an event to hap...
6 comments:
Monday, 4 May 2015

Alternative function: Net future value of a cash flow

›
See also  the time value of money  for other related Matlab functions. Download nfvFlow.m Introduction The future value (FV) of a sing...
Saturday, 2 May 2015

Fitting a better psychometric curve (Wichmann and Hill 2001)

›
Code GitHub: Matlab code and Python package Introduction Psychometric curves quantify the relationship between stimulus parameters and a...
1 comment:
Sunday, 19 April 2015

Introduction to psychometric curves and fitting a simple psychometric function

›
Code GitHub: Matlab code and Python package Introduction An important aim of psychophysics is to quantify the relationship between stimu...
6 comments:
Wednesday, 8 April 2015

Alternative function: Net present value of a cash flow

›
See also  the time value of money  for other related Matlab functions. Download npvFlow.m Introduction The net present value (NPV) of ...

Alternative function: Present value of lump sum

›
See also  the time value of money  for other related Matlab functions. Download pvLump.m Introduction The present value of a lump sum ...
2 comments:

Alternative function: Future value of lump sum

›
See also  the time value of money  for other related Matlab functions. Download fvLump.m Introduction The future value (FV) of a singl...
Saturday, 4 April 2015

Alternative function: Moving average

›
Download movAv2.m This is a slightly more advanced version of movAv  and provides an alternative to  movavg  and  tsmovavg  ("time...
Sunday, 29 March 2015

Alternative function: Simple moving average

›
Download movAv.m (see also movAv2  - an updated version allowing weighting) Description Matlab includes functions called movavg and  t...
›
Home
View web version
Powered by Blogger.