- #1

- 148

- 0

http://www.mathworks.com/matlabcentral/fileexchange/30580-binary-amplitude-shift-keying[1]

Code:

```
for ii = 1:1:length(bit_stream)
ASK_signal = [ASK_signal (bit_stream(ii)==0)*A1*sin(2*pi*f*t)+...
(bit_stream(ii)==1)*A2*sin(2*pi*f*t)];
```

Code:

`time = [time t];`

Code:

```
t = t + 1;
end
```