TP-probabilites/TP1/vectorisation.m
2023-06-10 21:01:20 +02:00

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