Question

Using a MATLAB program, Create a function graph (function, xmin, xmax) that draws a graph within...

Using a MATLAB program,

Create a function graph (function, xmin, xmax) that draws a graph within a given range of x values (xmin to xmax).

Homework Answers

Answer #1
snr=0:1:15;
for ii=1:length(snr)
    x=randint(1,100000); % Generating bits
    y=pskmod(x,2); % Generating BPSK modulated data
    ynoisy=awgn(y,snr(ii)); % Adding AWGN noise to data
    z=pskdemod(ynoisy,2); % Demodulating
    error(ii)=length(find(x-z~=0));
end
semilogy(snr,error)
hold
snr=0:1:15;
for ii=1:length(snr)
    x=randint(1,100000); % Generating bits
    y=pskmod(x,4); % Generating QPSK modulated data
    ynoisy=awgn(y,snr(ii)); % Adding AWGN noise to data
    z=pskdemod(ynoisy,4); % Demodulating
    error(ii)=length(find(x-z~=0));
end
semilogy(snr,error)
grid
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
create program using matlab, that displays number of (+) entries (=>0) in matrix and number of...
create program using matlab, that displays number of (+) entries (=>0) in matrix and number of negative (<0). Hard code matrix in program. Use nested loops and an if-else-end structure to count (+) and (-) entries. Program should display original matrix and number of positive/negative entries.
create program using matlab, that displays number of (+) entries (=>0) in matrix and number of...
create program using matlab, that displays number of (+) entries (=>0) in matrix and number of negative (<0). Hard code matrix in program. Use nested loops and an if-else-end structure to count (+) and (-) entries. Program should display original matrix and number of positive/negative entries.
2) (USE MATLAB) Create a function called g that satisfies the following criteria. (Hint: Find function)...
2) (USE MATLAB) Create a function called g that satisfies the following criteria. (Hint: Find function) For x < -π                    g(x) = -1 For x ≥ -π and x ≤ π    g(x) = cos(x) For x >π                      g(x) = -1 Plot your results for values of x from -2p to +2p. Choose your spacing to create a smooth curve.
Using for loop and if statement, write a MATLAB code to plot a graph for x(t)...
Using for loop and if statement, write a MATLAB code to plot a graph for x(t) as a function of time t in the range 0 to 12 in increment of 0.01 ?(?) = 1: 0 ≤ ? ≤ 1 2? − 1 1 ≤ ? ≤ 2 3 2 ≤ ? ≤ 3 −2.5? + 10.5 3 ≤ ? ≤ 5 −2 5 ≤ ? ≤ 6 4/3 ? − 10 6 ≤ ? ≤ 9 2 9 ≤...
Matlab Create plot of the following density functions using x values between -10 and 10 with...
Matlab Create plot of the following density functions using x values between -10 and 10 with an increment of 0.02 -Normal cumulative distribution function with mu=1, sigma=1, mu=0, sigma=2, mu=0,sigma=1/2
Create a MATLAB program to answer the given problem You're given three integers, a, b and...
Create a MATLAB program to answer the given problem You're given three integers, a, b and c. It is guaranteed that two of these integers are equal to each other. What is the value of the third integer?
Create a function x=backsub(U,y) in matlab that accepts as input arguments a nxn matrix U and...
Create a function x=backsub(U,y) in matlab that accepts as input arguments a nxn matrix U and n-vector y, and returns as output a column vector x consisting of the values of the unknowns x1; x2; : : : ; xn.
USING MATLAB Create a grayscale art image 1000px x 1000px using MATLAB. You must implement the...
USING MATLAB Create a grayscale art image 1000px x 1000px using MATLAB. You must implement the use of grey scale. Be creative. You can earn up to 5 additional points.
MATLAB 2017b Write a program which will: Accept three numbers from the user: a, b and...
MATLAB 2017b Write a program which will: Accept three numbers from the user: a, b and c which can assume any value. Accept Dx and Dy for the calculations of the function Write a function which accept a, b, c, Dx and Dy and will draw the following surface Where x and y vary in the range of -10?x?10 -10?y?10. Allow the user to rerun the program and exit the program upon request.
Using Matlab, evaluate ? = (? + 10) (?^5 + 1) for values of x in...
Using Matlab, evaluate ? = (? + 10) (?^5 + 1) for values of x in the range of -1 to 1 in step sizes of 0.1. Hence, plot y versus x. Could you also include the Matlab code and the associated screenshots?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT