FIND requires variable sizing
Show older comments
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 Comments
Kaustubha Govind
on 29 Aug 2014
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
on 29 Aug 2014
Idrees Idrees
on 1 Sep 2014
Answers (1)
Andrew Reibold
on 29 Aug 2014
0 votes
Have you tried what this guy did for a similar situation?
Categories
Find more on Discrete-Event Simulation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!