how can i use events() in matlab coder.

2 次查看(过去 30 天)
mayank
mayank 2013-7-17
If i tried running matlab coder it is showing This structure does not have a field 'events'; new fields cannot be added when structure has been read or used.
this function works well in matlab. but i want to use it in matlab coder

回答(2 个)

Jan
Jan 2013-7-17
Yes, you observe the fact, that code accepted by the coder has some limitations. I think, the error message means, that you add a new field to an existing struct. While this is valid in Matlab, it looks like it is not allowed for the Coder. Then create the struct with the new field initially.
  1 个评论
mayank
mayank 2013-7-17
have you ever used events() function in mstlab. Also do you know where to find the code of files. I searched for file and it only contains comments.

请先登录,再进行评论。


Ryan Livingston
Ryan Livingston 2013-7-18
Events are not supported for code generation. You can see the list of limitations here:

类别

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

产品

Community Treasure Hunt

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

Start Hunting!

Translated by