linear chirp signal generation ?

hello i don’t want to use chirp inbuilt function and i have written a code for chirp. could any one tell me is the code is correct ? i have simulate it and getting plot but at instantaneous time t1, I am not getting frequency change.

i have written a code according to equation of chirp signal generation.

please tell me this is correct ?

*****************************************

f1 =10;

f2 = 50 ;

t =0:0.001:20;

t1 = 10;

alpha = (f2-f1)/t1;

f= (alpha)*t + f1;

xx =1*cos(f);

plot (t,xx);

**********************************************

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

hi, try this :

Fs=1000; % sample rate 
tf=2; % 2 seconds
t=0:1/Fs:tf-1/Fs;
f1=100;
f2=400; % start @ 100 Hz, go up to 400Hz
semi_t=0:1/Fs:(tf/2-1/Fs);
sl=2*(f2-f1/2);
f1=f1*semi_t+(sl.*semi_t/2);
f2=f1(end)+f2*semi_t-sl.*semi_t/2;
f=[f1 f2];
y=1.33*cos(2*pi*f.*t);
plot(t,y)

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

ABN AMRO is nominated for the Developer Portal Awards 2021 — Vote for us!

What happens when you type “gcc main.c”?

Building a nutrition-tracking app with React, Go, and MongoDB

architecture diagram of the web app

Cloud Migration: should I stay or should I go?

What happens when you type any URL on a web browser?

Code is more than language, it’s communication

Three black retro wired telephones against a white background

MicroPython ESP32 Synth Module: Part 2 :: Receiving Gates

WSO2 HOW TO: Enable the Response Time in http_access.logs without server Re-starting

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

Why webcams won’t work with Image Acquisition tool when connected via USB hub?

Use Cases for Machine Learning

Deep Learning for Tabular Data

Precipitation Rainfall-runoff modelling via using a hybrid CNN-LSTM-Network