"Type mismatch in input arguments" error when using "add_line()"

조회 수: 6 (최근 30일)
Lucas S
Lucas S 2019년 6월 26일
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개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by