Why do I get this error? Undefined function 'abs' for input arguments of type 'Simulink.Parameter'.

8 次查看(过去 30 天)
I get Undefined function 'abs' for input arguments of type 'Simulink.Parameter' error and I do not know why because I do not use any abs functions. I'm useing simpowersystem modeling and i need to have blocks parameters set as ImportedExtrn storage class.

采纳的回答

Niklas Nylén
Niklas Nylén 2014-4-9
Are you using the parameter as a mask value? There may be something below the mask that is attempting to use the parameter that cannot handle Simulink.Parameter parameters.
  2 个评论
Jernej
Jernej 2014-4-10
I am not using any masks. I just use standard simpowersystem blocks and lookuptables and constants from simulink library.
Niklas Nylén
Niklas Nylén 2014-4-11
Simpowersystem models are likely masked systems (I don't have it so I can't check). If you use the Simulink.Parameter in the mask of a simpowersystem block there could be a (bad) implementation of abs(parameter) inside that block.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Subsystems 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by