M-file encodes that the binary sequence given at its input.in this file x denotes the input sequence and it can be of any length.it performs the encoding using logical functions.
thanks, nice to try it!!!
forgot to rate it properly
The function is a script in disguise, by setting the input variables to a fixed values. Badly coded (no pre-allocation, badly coded for-loops). No useful (and even incorrect) help.
good work da