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
**Please use MATLAB** 11)Function: Create a function that takes inputs “x” and “z” and generates any...
**Please use MATLAB** 11)Function: Create a function that takes inputs “x” and “z” and generates any random matrix of dimension “x” or “z”, whichever is larger. 12)Function: Create a function that takes a generic matrix, x, and finds the smallest value in the matrix. The function must work for matrices of any size or dimension. **Please use MATLAB** Also, please include code used for the function. I have tried several times but have been unsuccessful.
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.
Write a Java program using the OOP paradigm to do the following: 1. Main Function: create...
Write a Java program using the OOP paradigm to do the following: 1. Main Function: create a list with a million items, and you can use the generate function to add a million random values to the list. 2. Create a method to sort the list created in the main function using bubble sort, then use the sorted list to search for the (k) value using binary search. 3. Create a method to create a new list of 1000 items...
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.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT