How to use Pwork vectors for multiple C++ Objects

I would like to use the Pwork vectors in one of our sfunctions. I have gone through the examples mentioned under this link
How can I pass two counter objects from mdlstart to mdloutputs.?
For eg., I have to pass the objects like new counter1 and new counter 2
In your examples in the above link it is shown like for only one object. I need to pass two object.
Kindly let me know how to do it.

Answers (0)

This question is closed.

Asked:

on 13 Sep 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!