For a labI was given this code
and was to put that into matlab and display the sampling and function which works fine. We then needed to make this into a function of x=Asin(omega*t) where f = 10000Hz, and find the sampling at rates of 5k, 10k, and 20, 100k. However changing the values of the sampling frequency and the function frequency gives me a graph that is not at all similar and I have no idea what I need to fix or change to get the graph to look like the initial one.
that is what I changed the code too for 5k and 10k, i know those are both less than nyquist's sampling so it will result in not a good graph, but even with 20k+ the graph isnt similar to what it was before.
what I specifically dont understand is
; is time
part of the code and what it does
how to get a proper sampling graph of 5k,10k,20k and100k, and what to change to get that