Posts Tagged ‘matlab’

February 10, 2014 0

Matlab: calling a function handle with parameters from a cell array

By in matlab

Having a function handle sometimes means that you want to be flexible regarding the number of input arguments. having a function handle fhandle=@plot means that you can call fhandle() but is you want to pass a variable number of arguments to fhandle that resides in a cell array, cparameters, containing e.g.: cparameters={[1:10],’resize’,’no’} you can do: […]

Tags: , , ,

February 10, 2014 0

date string in matlab to autogenerate filenames

By in matlab

generate file names using the current date and time. e.g. filename=[datestr(now(),’yyyy-mm-dd HH:MM’) ‘ preprocessed data.txt’]; generates: 2014-02-10 16:40 preprocessed data.txt

Tags: , ,