How do I input a (1+bS) block into simulink, when b is const.?
조회 수: 4 (최근 30일)
이전 댓글 표시
I am trying to solve a system.
I know how to input a block like (1/as+b), but a (aS+b) block. Could someone help me with how to input this block in simulink?
Here is a picture of the block diagram
댓글 수: 0
채택된 답변
Abhishek Kolla
2022년 1월 5일
Hi,
You can use MATLAB Function block in Simulink Library Browser to create custom functions. Double-clicking the MATLAB Function block opens the MATLAB Function Block Editor, where you write the MATLAB function.
Assume the value of b=2 , the below code snippet will create the transfer function 1+2s
>>num = [2 1];
>>den = [1];
>>tf(num,den);
Hope this helps.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!