Time and frequency domain spreading in CDMA and MC-CDMA?
The spectrum of DS-CDMA without pulse shaping is equivalent to the sinc function. The Matlab code below illustrates the difference between DS and MC-CDMA. For MC you need the IFFT not the FFT function.

clear,clc

N=2;
% BPSK data
d=sign(randn(1,N));

% 7-chip m-sequence code
c=[1 1 1 -1 1 -1 -1];

% DS-CDMA
s1=kron(d,c);

% MC-CDMA
L=sqrt(length(c));
s2=L*ifft(d(1)*c);
s3=L*ifft(d(2)*c);
% etc, better to use a for loop for more symbols