MATLAB Program to generate a cosine waveform

Program Code
clc;
clear all;
close all;
f=1000;
t=0:1/(f*1000):2/f;
y1=cos(2*pi*f*t);
plot (t,y1);
xlabel ('Time');
ylabel ('Amplitude');
title ('cosine Waveform');
grid on;



Output
_______________________

2 comments:

  1. Very nice post. I certainly love this website. Thanks!

    ReplyDelete
    Replies
    1. Respected Sir,
      Thank you, for spending your valuable time to read this blog and for encouraging me with your valuable opinion. I am the author of this blog. My name is Anju K.
      I wish you good health and happiness. May all your friends and well-wishers remain happy and healthy.

      Delete

Please write your opinion about this MATLAB program here, only in English.

For sale

For sale
Indian currency Ten-rupee note in good condition. Issued by the Reserve Bank of India between 22 December 1992 and 21 December 1997. Serial number 52T332603 . Those interested to buy, please contact: Anju K, Email: tc9749@gmail.com . Address: 'Sreyas', House no.7/296, Pulliodi, Kathiroor village, Ponniam east PO, via Ponniam west, Thalassery, Kannur, Kerala - 670641, India.