Error in Matlab Function Block

1 回表示 (過去 30 日間)
Alejandro
Alejandro 2014 年 9 月 24 日
回答済み: Rajanya 2025 年 4 月 17 日
I am trying to make my own block to perform the Jacobian matrix of a system. Before making it I wanted to test the example from the matlab web page:
new_system('my_system') open_system('my_system') syms x y r = sqrt(x^2 + y^2); matlabFunctionBlock('my_system/my_block', r)
But I've got the following error:
Error using sym/matlabFunctionBlock>getBlock (line 143) The block 'my_system/my_block' must be a MATLAB Function Block.
Error in sym/matlabFunctionBlock (line 68) b = getBlock(block);
Does anyone know why?

回答 (1 件)

Rajanya
Rajanya 2025 年 4 月 17 日
This was a known bug in MATLAB R2013b or before (see https://www.mathworks.com/support/bugreports/1002236)
Upgrading to MATLAB R2014a would solve the issue.
Thanks.

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by