Did you choose the tag "code" and if so, why?
The question is not clear. Could you add a minimal example by editing the question - not as comment or answer?
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!