How to prevent MATLAB Coder from breaking up input structures
Show older comments
MATLAB Coder will sometimes treat a subset of the fields of an input structure as individual inputs. How can I direct MATLAB Coder to always pass the entire structure?
e.g.
struct.A = 1; struct.B = 2; struct. C = 3
[output] = myfunction(struct)
MATLAB Coder will sometimes generate code as follows:
[output] = myfunction(struct_A,struct_B)
Accepted Answer
More Answers (0)
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!