From: Hemarajan Chikorde on 15 Feb 2010 04:31 "Phil Goddard" <philNOSPAM(a)goddardconsulting.ca> wrote in message <h90f8l$qi3$1(a)fred.mathworks.com>... > > By using > > set_param('sw(i)', 'Threshold','2'); > > you are telling set_param to look for a model/block literally called 'sw(i)'. > > sw is a cell array, to extract an element from it use curly braces sw{i}, and when using it with set_param you don't want the single quotes. > > for idx = 1:length(sw) > set_param(sw{i},'Threshold','2'); > end > > Phil. Thank you very much Phil. Thanks for the information.
|
Pages: 1 Prev: sigma delta modulation technique for inverter Next: Multithreading |