Does anybody know how to solve
removing duplicates – ** only when the duplicates occur in sequence
in Octave? The accepted solution is using diff.
Matlab’s diff seems to behave differently than the Octave’s one and doesn’t accept characters.
Any idea is appreciated.
You can convert the characters to their ASCII codes, then run the solution as given: