how to solve anonymous function in Simulink

조회 수: 9 (최근 30일)
SONG
SONG 2016년 4월 5일
답변: Orion 2016년 4월 5일
Hi everyone, I am now struggling with applying the anonymous function in Simulink which is not supported however. I have to call 'fzero' and 'quad2d' to do parameters estimation that gonna use '@' to define the control variable, like 'quad2d(@(r,s)weight(r,s,x),-100,0,@(r)r,100)','voltage = fzero(@(v) sq(v,u,Displace,i,x),[0 200] );' here 'weight' and 'sq' are self-defined function. Do you have the same situation like this, how do you solve it? Thanks a lot.

채택된 답변

Orion
Orion 2016년 4월 5일
Hi,
I answered to a similar question here
You just have to adapt the method to your problem.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by