How to generate matlab code in a simulink block

Hello,
I didn't find any solutions to generate randomly a ternary sequence, so, I get an idea. Generate a ternary sequence with matlab code (easy with rand), and put it in a simulink block for simulation. It is possible ?
Thanks for any response.
Regards

Categories

Find more on Simulink Coder in Help Center and File Exchange

Tags

Asked:

on 11 Mar 2015

Answered:

on 11 Mar 2015

Community Treasure Hunt

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

Start Hunting!