how to set application data to an s-function using s-function wizard

i am trying to modify an s-function block using command line
blkNames = find_system(bdroot,'lookundermasks','all','BlockType','S-Function');
for blkIdx = 1:numel(blkNames)
blkHandle = get_param(blkNames{blkIdx}, 'Handle');
appdata = sfunctionwizard(blkHandle,'GetApplicationData');
appdata = sfunctionwizard(blkHandle,'Build',appdata);
end
this code allows me to build an s-function from command line and the appdata is a structure which has all the information like s-function name, inports, outports , their datatype etc. can i modify the appdata and write it back to the s-function block using the s-function wizard?

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Block and Blockset Authoring 的更多信息

提问:

2015-3-20

评论:

2016-5-1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by