When scripting for use in a Simulink model, is there a way to set the Logical Operator? Change the number of inputs?
조회 수: 3 (최근 30일)
이전 댓글 표시
sys = 'MakeAND_IntoNAND'; new_system(sys) % Create the model open_system(sys) % Open the model simulink;
%This will only create an AND block, how do I change to any other operator? pos = [65 40 120 65]; add_block('simulink/Commonly Used Blocks/Logical Operator', [sys '/AND'],'Position',pos);
pos = [90 80 155 105]; add_block('built-in/Logical Operator', [sys '/AND2'],'Position',pos);
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Verification, Validation, and Test에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!