Undefine function or variable in matlab function block

I have a masked 'matlab function' with a parameter in the input area of the script as shown:
function BlkHistoVector = CreateBlockHistogram(LeftBin, Magnitude1, Magnitude2, p)
The "p" is defined in Edit Data as a parameter and all works well in my small model (attached as 'Working.slx') with just the masked block and some constants to define signals. I can change the value of p by double clicking the mask and get the 'Function Block Parameter' window to pop up and ask for the value of p, which I can change, rerun and the output vector changes size accordingly.
When I copy/paste my 'working' block into my much larger program (also attached), I get "Undefined function or variable 'p'." Block is at DLib/HogSVM/HoGCalculation/EachPixel/HoGEnabledSS/CreateBlockHistogramVectorEE in the heirarchy.
what broke? I notice on the unworking version all the input signal dimensions are 1x1 as opposed to just double.

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Author Block Masks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by