Prev: Notch filter
Next: How to cover part of a contour line
From: John on 8 Jul 2010 10:51 Thank you so much, this worked nicely. "Phil Goddard" <philNOSPAM(a)goddardconsulting.ca> wrote in message <i115m1$7v$1(a)fred.mathworks.com>... > > The actual UI is controlled by the function sf_de_manager.m which is in the directory MATLABROOT\toolbox\stateflow\stateflow\private. > However you really need to call it via eml_man.m which is in the same directory. > > So ideally you want > >> eml_man('edit_data_ports', sf('get', get_param(gcb,'UserData'), '.chart')) > > However, since the functions are in a private directory they cannot be called directly. > > One option would be to create a function handle like the following, > >> currentDir = pwd; > >> cd([matlabroot filesep 'toolbox\stateflow\stateflow\private']); > >> fHandle = @eml_man; > >> cd(currentDir); > >> fHandle('edit_data_ports', sf('get', get_param(gcb,'UserData'), '.chart')) > > The above assumes that the block of interest had been selected and hence gcb refers to it. > > Phil |