Is it possible to load discrete signal in Signal Builder?

1 view (last 30 days)
Created signal from code by using structure.time & structure.signals.values
The imported signal in Signal Builder is continuous, even if the sample time is set to 1 in Simulink Option.
Just wondering if it is possible to created digital discrete signal (square wave, two values on one time point) from code and loaded in Signal Builder.
I checked export variable contents from signal builder, square wave is captured as two identical values in time, and two values for sample. Just wondering if there is more efficient coding technique to generate signal.
Thanks for any hints,

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!