Simulink button for a cubic function
조회 수: 66 (최근 30일)
이전 댓글 표시
Trying to solve a nonlinear model and a linearized model using Simulink and I need a simple cubed button. Cannot find it anywhere. Just need something to simply do u^3.
댓글 수: 0
답변 (1개)
ragesh r menon
2014년 4월 10일
You can use "user defined function" blocks in Simulink for these purposes. Use "Fcn","Matlab function" etc for this For example a matlab fucntion to cube is given
function y = fcn(u)
%........
y = u^3;
this u....u1..un..... is your arguments and y1...yn are return values...like this you can create any complex function using this block.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Oil, Gas & Petrochemical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!