So basically phi1 = 30, phi2 = -50 and phi3 = 210; the E_x etc. are the respective amplitudes; and the coefficients.. what coefficient? Wouldn't k be removed since the field is not a plane wave and thus the direction component is 0? I'm not sure how to factor in the frequency either since I...
I may be wrong but according to my textbook E(r,x) is the plane wave where r is the direction of propagation. For E0cos(wt-kz) z seems to be the direction.
The incorrect answer is mine or the given one? With 5 bits it's 3.125% and for 6 bits it's 1.563%, neither of which is 2.44%, so I guess neither is correct?
The gain error is 2.44% as is given in parentheses, but since that is the next part of the question I didn't think it's needed for part (ii). To have 7 reliable bits (1111 111X), it needs 254 bits and for 6 bits (1111 11XX), it needs 252 bits?
Finally I got it to work! I wish I could get rid of the preallocation warnings for time, FSKsignal and Dsignal though. Replacing them with your code doesn't work because Btime is an array, resulting in "Matrix dimensions must agree" error.
clear all;
% Number of bits
Nbits = 30;
bitstream =...
So basically it's just a simple concatenation. I had trouble reading it because that seems rather awkward. It's not my code though, I had the source in the original post.
I have one last question if you don't mind; how do I assign an array to a matrix?
Let's say X is a 1x6 array and I have...
Since in this case bitstream(ii) is used, I suppose it should return a single value and not an array?
I just realized that this is no conditional statement. That explains why I couldn't get the result I wanted.
I'm trying to figure out what these do in certain implementations. I can't seem to find the answer in the documentation.
http://www.mathworks.com/matlabcentral/fileexchange/30580-binary-amplitude-shift-keying[1]
for ii = 1:1:length(bit_stream)
ASK_signal = [ASK_signal...