I need code that generates 10101101 sequence or any other repeatedly using matlab programming or simlink modelling. Also i want this sequence waveform of certain frequency e.g 1khz.
Is this a finite or an infinite sequence of ...0's.. and ..1's...? Or is this a discrete binary representation of a sequence of numbers? Is this a random generation?
its infinite sequence repetition like 10101101..10101101... i want particular sequence to repeat infinitely, not random generation. i want to use this repetition for gate pulsing of IGBT's.
Just define a sequence using an array in matlab and use repmat () function to append the sequence one after the other. In fact, depending on how you use it, you may not need to create repeated array. Just create an array and join tail to end, I.e. If current index is at the end, then end+1 will be the starting index
There exists in Simulink a block called Repeating Sequence stair . Is what you need.
The Repeating Sequence Stair block outputs and repeats a stair sequence that you specify with the Vector of output values parameter at a sample time you define too.