I have an assignment for my electronics class. I'm not asking for anyone to do my homework here. I just need some help getting started.
Here is my exercise
Draw the time domain graph of the following signal.
f(t) = sin/t (for t= -10 : .1 : 10)
Ive been able to take what's in the brackets and produce a table of values from -10 to +10.
Im just not sure what to do from there. I dont know the proper syntax to use in MatLab to plot this.
By the way this is just 1 of 30 questions I have. Please help me with this one so I can finish the rest
Someone helped me with this source code but I am still confused. They told me the following
t= -10 : .1 : 10 <- this gives a matrix containing the values that are going to be used for 't' your time domain.
f(t) = sin/t <- is a function in which you will plug in 't'.
Sample code:
t = -10 : 0.1 : 10
F = sin(t)
plot(t,F)
I am confused with the second line of code ( F = sin(t) )
Should I not want sin/t ?
Is there something I am missing?
Can someone please verify the actual source code I would need to enter to produce the desired results.
Here is my exercise
Draw the time domain graph of the following signal.
f(t) = sin/t (for t= -10 : .1 : 10)
Ive been able to take what's in the brackets and produce a table of values from -10 to +10.
Im just not sure what to do from there. I dont know the proper syntax to use in MatLab to plot this.
By the way this is just 1 of 30 questions I have. Please help me with this one so I can finish the rest
Someone helped me with this source code but I am still confused. They told me the following
t= -10 : .1 : 10 <- this gives a matrix containing the values that are going to be used for 't' your time domain.
f(t) = sin/t <- is a function in which you will plug in 't'.
Sample code:
t = -10 : 0.1 : 10
F = sin(t)
plot(t,F)
I am confused with the second line of code ( F = sin(t) )
Should I not want sin/t ?
Is there something I am missing?
Can someone please verify the actual source code I would need to enter to produce the desired results.
-
t = -10 : 0.1 : 10;
F = sin(t);
plot(t, F)
It's correct.
t is your independent variable.
F is your dependent variable, which happens to be sin(t).
You're plotting F (vertical values) versus t (horizontal values).
I suggest you see
http://matrixlab-examples.com/2D-plots.h…
http://matrixlab-examples.com/2d-drawing…
.
F = sin(t);
plot(t, F)
It's correct.
t is your independent variable.
F is your dependent variable, which happens to be sin(t).
You're plotting F (vertical values) versus t (horizontal values).
I suggest you see
http://matrixlab-examples.com/2D-plots.h…
http://matrixlab-examples.com/2d-drawing…
.