TP-probabilites/TP1/vectorisation.m

13 lines
209 B
Mathematica
Raw Normal View History

2023-06-10 19:01:20 +00:00
## 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