Plot sine wave in Matlab

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 25

  • @sirichandanapollayi-vd6pk
    @sirichandanapollayi-vd6pk Рік тому

    Excellent explanation sir every concept is very clear

  • @hasibulshaikh8381
    @hasibulshaikh8381 4 роки тому +4

    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.

  • @sohamdas7775
    @sohamdas7775 4 роки тому +1

    People like you deserve a place in the heaven

  • @PetBuddies
    @PetBuddies 2 роки тому

    4 years old video, yet super helpful.. thank you

  • @rvp1002
    @rvp1002 4 роки тому

    Very well explained. Thank you so much.

  • @vanshikascottage5494
    @vanshikascottage5494 3 роки тому

    very good...

  • @eduart7095
    @eduart7095 4 роки тому

    Wow👌

  • @Siva-og9ke
    @Siva-og9ke 4 роки тому

    Nice bro..

  • @Jdonovanford
    @Jdonovanford 4 роки тому +1

    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

    • @exploringlatex8693
      @exploringlatex8693  4 роки тому +1

      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)

    • @Jdonovanford
      @Jdonovanford 4 роки тому

      @Sabin SR What?

    • @Jdonovanford
      @Jdonovanford 4 роки тому

      @Sabin SR se.mathworks.com/matlabcentral/answers/147444-how-to-add-values-through-a-for-loop

  • @poornimasuryavanshi127
    @poornimasuryavanshi127 5 років тому

    Great

  • @pratikgandhi963
    @pratikgandhi963 4 роки тому

    wow\

  • @kanwalsajid4338
    @kanwalsajid4338 5 років тому

    thank you sir

  • @Terabyte1244
    @Terabyte1244 4 роки тому

    hi what about if i ant to change the phase of the wave?

    • @vayusutham8082
      @vayusutham8082 4 роки тому

      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..

  • @anuragamuka
    @anuragamuka 3 роки тому

    sir can you explain it in terms of sampling frequency

    • @exploringlatex8693
      @exploringlatex8693  3 роки тому +1

      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

  • @sooooleh
    @sooooleh 4 роки тому

    why not to use sind instead of sin in matlab?

  • @sabari8296
    @sabari8296 3 роки тому

    How to write sin³t in Matlab sir