FIND requires variable sizing
显示 更早的评论
i am facing a problem of "Find requires variable sizing" whenever i compile my matlab function block of simevents. the scenario is simple that is i have to fimd the indexes from an array using find function: min_loc = find(pat_w_time(:,k)==min(pat_w_time(:,k)));
i have tried to google it a lot and also tried to search mathworks but all in vain moreover i have also tried code.varsize and emel.varsize but agian i am getting error. help appreciated
3 个评论
Kaustubha Govind
2014-8-29
Could you post a simplified version of your function with use of coder.varsize? Is min_loc an output of the block, or just a local variable?
Idrees Idrees
2014-8-29
Idrees Idrees
2014-9-1
回答(1 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Discrete-Event Simulation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!