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!