Monday, March 7, 2011

Useful MATLAB tips

This is a working post of MATLAB tips
1. Access fields of a structure using a string variable
>> struct_x.(genvarname('R_cdf'))
is equivalent to
>> struct_x.R_cdf

No comments: