Functions | |
endfunction | !assert (runlength([2 2 0 4 4 4 0 1 1 1 1]),[2 1 3 1 4]) |
Variables | |
function [count, value] | |
value = x(idx) | |
count = diff ([0 idx]) |
endfunction !assert | ( | runlength([2 2 0 4 4 4 0 1 1 1 1]) | ) |
count = diff ([0 idx]) |
value = x(idx) |