Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8612829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:43:24+00:00 2026-06-12T04:43:24+00:00

I am trying to produce a swept square or triangle wave. The chirp function

  • 0

I am trying to produce a swept square or triangle wave. The chirp function produces a swept cosine wave; is there a way to do this with the square or sawtooth waves? My approach right now, at least for something like a square wave, is

V = A*chirp(t,f0,t1,f1, 'linear', -90); %#change the cosine wave to a sine wave
V(V<0) = -A;
V(V>0) = A; 

I can do the same type of thing with a triangle wave, but it’s a little more annoying.

Generally speaking, is there a more straightforward way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:43:26+00:00Added an answer on June 12, 2026 at 4:43 am

    The swept-frequency is the same as evaluating a function

    function(2 * pi * integral(f(t) dt))
    

    where f(t), the time-varying frequency, is linear with time.

    Just write the equation for a line in two-points form:

    f(t) = f0 + (t - t0) * (f1 - f0) / (t1 - t0)
    

    and integrate:

    function(phase0 + 2*pi*f0*t + pi * (t - t0)**2 * (f1 - f0) / (t1 - t0))
    

    The simplest form of this is when t0 = f0 = phase0 = 0, then you get:

    function(k * t**2)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to produce a string using a NSDate category in this way: NSString*
I'm trying to produce this XML statement (minus the formatting and specific values): <swatchcolor
I'm trying to produce random integers (uniformly distributed). I found this snippet on an
I am trying to produce an interactive Haskell program using the interact function with
I am trying to produce right aligned numbers looking a bit like this: 12345
In this code example, i am trying to produce the following view hierarchy Window
This is making me feel dumb, but I am trying to produce a single
I'm trying to produce a page that would function a bit like a digital
The below code I'm trying to produce is trying to do this: What I'm
Please help me out on this one, Im trying to produce 2 radio buttons

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.