Using SLDV to check compatibility occurs error "Find requres variable sizing"

조회 수: 1 (최근 30일)
Jia Ning
Jia Ning 2016년 7월 15일
답변: Arunkumar M 2018년 11월 9일
Hi, I used the same model by generating C code with embedded coder as well. It works without the error. But by using SLDV the function "find" in the model cause the "Find requres variable sizing" error. Why are the "find" function is not compatible with SLDV? How to pass the compatibility check in SLDV if model have "find" function? Thanks.

답변 (1개)

Arunkumar M
Arunkumar M 2018년 11월 9일
SLDV needs to know the size of all outputs in advance. Hence it can only work with fixed size variables. find function can return variable size output depending on the input. Hence this error. I dont think there is any way around for this by retaining find function.
I guess you can redesign the same logic without using find function.

카테고리

Help CenterFile Exchange에서 Model Compatibility에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by