embedded matlab function in simulink

Hey, I can not use the command "hold on" in an embedded matlab function in simulink. The compiler says: "Command-duality is not supported". Why is that and what can I do?

回答(1 个)

Use
hold('on')
Command duality means using the non-function-style:
hold on

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

提问:

2013-4-27

Community Treasure Hunt

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

Start Hunting!

Translated by