MATLAB Answers

Jia Ning
0

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

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.

  0 件のコメント

サインイン to comment.

1 件の回答

回答者: 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.

  0 件のコメント

サインイン to comment.



Translated by