"Type mismatch in input arguments" error when using "add_line()"
3 次查看(过去 30 天)
显示 更早的评论
Hello !
I'm trying to connect a subsystem with a port with the function add_line() :
allOutportBlock = find_system(sprintf('%s/%s', component_NameValue, subsystem_NameValue),'BlockType','Outport');
for element = allOutportBlock(:)'
add_block('simulink/Ports & Subsystems/Out1',[component_NameValue '/' block_name]);
add_line(sprintf('%s',component_NameValue), element, sprintf('%s/%s',component_NameValue, block_name));
end
But i have the error "Type mismatch in input arguments" and i don't know where is the problem
Thanks you !
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!