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!