1. I'm generating a power signal:
Fs = 1000; % Sampling frequency
T = 1/Fs; % Sampling period
N = 1000; % Length of signal
t = (0:N-1)*T; % Time vector
X = sin(2*pi*(10)*t);
The aplitude spectrum of this signal:
Y = 1/N * fft(S); % power signal, scaling 1/N
Y1 = abs(Y);
Y2 = Y1(1:N/2+1);
Y2(2:end-1) = 2*Y2(2:end-1);
plot(f,Y2)
If I increase the signal length to 10000, amplitude stays the same (at 1)

2. Now an energy signal:
X = ((1./(t+1).^20)).*sin(2*pi*(10)*t);
The aplitude spectrum of this signal:
Y = fft(S); % energy signal, scaling 1
...
Again: if I increase the signal length to 10000, amplitude stays the same (around 50)

3. Now a random signal:
X = randn(size(t));
If I increase the signal length to 10000, amplitude spectrum stays the same only with
Y = 1/sqrt(N) * fft(S); % scaling 1/sqrt(N)
...
It seems that noise signal is something between power and energy signal, but in literature it is called a power signal.
Xis not a power signal. It's impossible to create power signals in Matlab. – MBaz Jan 25 '19 at 15:21X = ((1./(t+1).^20)).*sin(2*pi*(10)*t);would also be a power signal under those assumptions. – MBaz Jan 25 '19 at 16:34