DISCLAIMER: These are my own views and in no way depict those of MathWorks.
Hello David,
If I understand your problem correctly, this MATLAB Answer will maybe help you.
Hope this helps.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!