Question: USING MATLAB. Using the zeros and ones functions, create two different row_vectors: the first vector is to consist of all zeros except for two elements
USING MATLAB. Using the zeros and ones functions, create two different row_vectors: the first vector is to consist of all zeros except for two elements (which two are to be 1 is left up to you). The second vector is to consist of the first n elements being 0, and the remaining elements all equal to 1. The value of n is arbitrary. Plot in one window stem plots of these two vectors as a function of x as x varies from -5 to +4 in the left hand pane, and as x varies from 0 to 9 in the right half pane.
I did this problem but I couldnt change the range of the graphs... I need help to know how to change the range of these graphs.
Step by Step Solution
There are 3 Steps involved in it
Certainly Lets go through the steps on how you can create those vectors plot them and adjust the range in MATLAB using stem plots Step 1 Create the Ro... View full answer
Get step-by-step solutions from verified subject matter experts
