The demo of hdlcoder_s​obel_seria​l_eml.mdl

2 次查看(过去 30 天)
In the sobel_edge_eml of sobel_edge_hardware of hdlcoder_sobel_serial_eml.mdl, there are three inputs u, thresh and C in the function. However, just an u is connected with this block. And I find thresh = 157 and C = 100 in workspace. So how are the two values generated?

采纳的回答

Kaustubha Govind
Kaustubha Govind 2011-3-16
I couldn't find this demo model in R2010b - did you download it off our website?
From what I can tell, it looks like the block in question is an Embedded MATLAB Fcn block with 'u' as input. The other inputs are actually parameters of the function (these are registered from the Ports and Data Manager of Embedded MATLAB). So, although they appear as inputs from the function prototype, they are not actually inputs to the block, but resolved from the workspace.
  1 个评论
smiczh ZHOU
smiczh ZHOU 2011-3-17
Thank you for your answer.
This demo model is a Simulink HDL Coder demo who's full name is Sobel Edge Detection Using the Embedded MATLAB™ Function Block. I found it Help.
To the question, the two inputs are actually parameters and they are given in File?Model Properties?Callbacks?InitFcn.

请先登录,再进行评论。

更多回答(0 个)

类别

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

产品

Community Treasure Hunt

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

Start Hunting!

Translated by