FFT widow to dsp processor.
No. You are doing a matrix mutliply and not a vector multiply. Correct version would be 

a=[1,2,3,4,5,6,7,8]'; % column vector
b=triang(8); % also column vector
c=a.*b;    % vector multiply
d=fft(c)