laywerrobot/lib/python3.6/site-packages/scipy/fftpack/tests/gendata.m
2020-08-27 21:55:39 +02:00

21 lines
432 B
Matlab

x0 = linspace(0, 10, 11);
x1 = linspace(0, 10, 15);
x2 = linspace(0, 10, 16);
x3 = linspace(0, 10, 17);
x4 = randn(32, 1);
x5 = randn(64, 1);
x6 = randn(128, 1);
x7 = randn(256, 1);
y0 = dct(x0);
y1 = dct(x1);
y2 = dct(x2);
y3 = dct(x3);
y4 = dct(x4);
y5 = dct(x5);
y6 = dct(x6);
y7 = dct(x7);
save('test.mat', 'x0', 'x1', 'x2', 'x3', 'x4', 'x5', 'x6', 'x7', ...
'y0', 'y1', 'y2', 'y3', 'y4', 'y5', 'y6', 'y7');