STFT gives the time information along with frequency information of the signal. I used rectangular window which obviously has same width allover the programming. I used a signal with 2 frequencies at 2 different timings. When you see the program you get to see the plots which will make you clear about STFT. The time and frequency information is got with more accuracy...
feel free to contact @ firstname.lastname@example.org
Yella (2020). short time fourier transform (https://www.mathworks.com/matlabcentral/fileexchange/31592-short-time-fourier-transform), MATLAB Central File Exchange. Retrieved .
I updated the picture and gave little explanation of what i did and what i used.