How can i filter the spectrogram colours and take as matrix?
조회 수: 9(최근 30일)
Hello, I am trying to change spectrogram matrix colours. I am writing audio and music recognition system based on Spectrogram.
fprintf("Amount of Fs is:%d \n",fs)
ylabel("Normalized Frequency (x pi radians/sample)")
I have this table from this function:
I need to filter, for example: Higher than -40dB will be white and lowers will be black. I need to recieve this as matrix with only ones and zeros. Thats why i am using grayscale.
Firsty, I couldnt filter and change the colours of the spectrogram.
Secondly, I couldnt obtain 2D matrix of the spectrogram.
Can you help me please guys, best wishes