- Provide values for every variable in the formula, including nb, Tfault, Tclear
- Provide an instance value of u
- Run the formula chunck by chunk, like Y* (abs(u(nb+1))<Tfault) and then Yf * (abs(u(nb+1))>=Tfault), and then the next
- You will find the problem, such as missing a parentheses
Syntax Error in Simulink Fcn block
1 回表示 (過去 30 日間)
古いコメントを表示
reshma muralidharan
2021 年 5 月 25 日
コメント済み: reshma muralidharan
2021 年 5 月 26 日
I am trying to run a simulink block diagram simulation.
I have the following function in a func block: (( Y* (abs(u(nb+1))<Tfault) ) +(( Yf * (abs(u(nb+1))>=Tfault)) & (abs(u(nb+1)) <(Tfault+Tclear) )) + (Ypf * (abs(u(nb+1)) >= (Tfault+Tclear) ))) \ u(1:nb)
Y,Yf,Ypf are matrices
no matter what I do I continue to get a syntax error and I simply cannot see what the problem is. Can someone please tell me what is wrong with this function.
0 件のコメント
採用された回答
Fangjun Jiang
2021 年 5 月 25 日
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!