Q1 Please, Answer the question in a a very clear hand wiritng to get rated. Avoi
ID: 3903556 • Letter: Q
Question
Q1 Please, Answer the question in a a very clear hand wiritng to get rated. Avoid an nesscery steps in answerting the question. The correct answer will be rated by different 3 users.
Please write appropriate Matlab command/commands to perform the following tasks: 1. Create a row vector named t from 0 to 10 with a step size of 0.1 2. Find the length of t 3. Write a loop to find the index number when t is equal to 6 4. Create a sinusoidal signal x at 100 Hz using the vector t 5. Plot x as a function t 6. Answer this question: what is the sampling rate of the sinusoidal signal x if the step size of t is 0.1 second?Explanation / Answer
1.
t(1,1)=0;
i=0;
while(i <9.9)
t=[t i+0.1];
i=i+0.1;
end;
2.
len=length(t)
3.
pos=0
i=0;
while(i<6)
i=i+0.1;
pos=pos+1;
end
4.
x=sin(2*100*pi*t)
5.
plot(t, x) ;
6.
Sampling rate =1/0.1=10
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.