i want to simulate (in Matlab) some kinds of channels and find the SER.
one thing i thought about is the place of generation of the channel coefficients and the noise - in the loop or outside the loop
i.e:
for i=1:length(SNR)
...
generate noise/sqrt(SNR)
generate channel
...
end
or
generate noise
generate channel
for i=1:length(SNR)
...
noise1=noise/sqrt(SNR)
...
end
There is not any meaningful difference between the two methods that you have provided.
Since you are working on different SNRs (The loop counter), therefore you can use the same noise and the same channel for them. but please note that the first method is slower (depending on the amount data you want to generate. you have to generate enough data based on the required accuracy)