13 lines
209 B
Mathematica
13 lines
209 B
Mathematica
## Author: Laurent <laurent@pop-os>
|
|
## Created: 2020-11-02
|
|
|
|
function [X,Y] = vectorisation(I)
|
|
|
|
I_g = I(:, 1:end-1);
|
|
I_d = I(:, 2:end );
|
|
|
|
X = reshape(I_g,[],1);
|
|
Y = reshape(I_d,[],1);
|
|
|
|
endfunction
|