Every point you explain very precise and finely. All the ground of the doubt is clear now. Now, I can plot any value of sine and cosine graph. Even the point of time you explain was great clap for that and once again thank you. Best wishes for further videos.
Thanks for the video! I have a question: How do you create a sine wave that has a sampling frequency of, let's say, .5, number of samples = 200, and you want a certain number of cycles? For instance, I want 3 cycles (for which I don't now the frequency) that fit into my data. Thank you
clc clear all close all fs = 0.5; % Sampling frequency t = 0:1/fs:29; % time starts from 0 and ends at 30 seconds (it has totally 15 samples ) f = 0.1; % Since fs=0.5, f < fs/2, i took it as 0.1 Hz (According to Sampling theorem) x = sin(2*pi*f*t) plot(t,x)
Anurag, here: fs = 1000 ----> sampling frequency as per your requirement t = 0 : 1/fs :1 ----> instead of using 0.001, we are using fs , coz 1/fs = 0.001 in this case
Excellent explanation sir every concept is very clear
Every point you explain very precise and finely. All the ground of the doubt is clear now. Now, I can plot any value of sine and cosine graph. Even the point of time you explain was great clap for that and once again thank you.
Best wishes for further videos.
People like you deserve a place in the heaven
4 years old video, yet super helpful.. thank you
Very well explained. Thank you so much.
Glad it was helpful!
very good...
Wow👌
Nice bro..
Thanks for the video! I have a question: How do you create a sine wave that has a sampling frequency of, let's say, .5, number of samples = 200, and you want a certain number of cycles? For instance, I want 3 cycles (for which I don't now the frequency) that fit into my data. Thank you
clc
clear all
close all
fs = 0.5; % Sampling frequency
t = 0:1/fs:29; % time starts from 0 and ends at 30 seconds (it has totally 15 samples )
f = 0.1; % Since fs=0.5, f < fs/2, i took it as 0.1 Hz (According to Sampling theorem)
x = sin(2*pi*f*t)
plot(t,x)
@Sabin SR What?
@Sabin SR se.mathworks.com/matlabcentral/answers/147444-how-to-add-values-through-a-for-loop
Great
wow\
thank you sir
hi what about if i ant to change the phase of the wave?
command is sin(2 * pi * f * t * plus or minus phase in radians) eg: sin(2 * pi * f * t * -2.2) if you need phase shift of -2.2 radians..
sir can you explain it in terms of sampling frequency
Anurag, here: fs = 1000 ----> sampling frequency as per your requirement
t = 0 : 1/fs :1 ----> instead of using 0.001, we are using fs , coz 1/fs = 0.001 in this case
why not to use sind instead of sin in matlab?
sind is for ploting sine wave in degrees...
How to write sin³t in Matlab sir
X=sin(2*pi*f*t).*sin(2*pi*f*t).*sin(2*pi*f*t);