If the signal you are analyzing has received from a physical signal, you cannot do anything. The merging of signals into one large array of 2048 samples will be sufficient to perform mathematics, but the result will be meaningless.
As an example, we make an array of 2048 cells and fill it as follows:
original = int [1024];
new = int [2048]
new [2 * n] = original [n];
new [2 * n + 1] = original [n];
This way you get a larger array and a higher frequency, but as your original data matches, the result you get will not be useful, it will be the same as the original FFT.
If you need only a higher-frequency analysis, you can do 2 things, change the sampling rate (I suppose you use the sound line in the jack) to the maximum that your sound card can use (mainly 48 kHz). Or, secondly, change the collection board to some specific equipment (any special usb assembly board can get up to 1 MHz easily).
Ps: frequency is 1024/2 times the sampling frequency. Remember to multiply the sampling rate.
source share