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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started