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 8987749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:51:58+00:00 2026-06-15T21:51:58+00:00

how to generate continuous tone with below conditions as i only able to create

  • 0

how to generate continuous tone with below conditions as i only able to create the tone from time 0 to 1. Ho to continuous generate it?
Create a 3 second signal containing three tones; Tone 220 Hz for 0 < t < 1 Tone 300 Hz for 1 < t < 2 Tone 440 Hz for 2 < t < 3
using s=sin(2*pi*t) and sampling frequency of 8192 Hz

Fs = 8192;
T = 1/Fs;                                             

t = 0:T:1;
t1=1:T:2;
t2=2:T:3;
y = sin(2*pi*200*t); 
hold on;
y = sin(2*pi*300*t1);
hold on;
y = sin(2*pi*440*t2); 
hold on;                         
plot(t,y);           
xlabel('t');                              
ylabel('Amplitude');                       

Thanks

  • 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-15T21:52:00+00:00Added an answer on June 15, 2026 at 9:52 pm

    do you mean this?

    Fs = 8192;
    T = 1/Fs;                                             
    
    t1 = 0:T:1;
    t2=1:T:2;
    t3=2:T:3;
    y1 = sin(2*pi*200*t); 
    y2 = sin(2*pi*300*t1);
    y3 = sin(2*pi*440*t2);                          
    plot(t1,y1,t2,y2,t3,y3);           
    xlabel('t');                              
    ylabel('Amplitude'); 
    

    If so, and you want the data to be in two arrays do the next also

    t=horzcat(t1,t2,t3);
    y=horzcat(y1,y2,y3);
    

    I am not 100% sure if this is what you want, if not, please correct me

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I generate a dynamic assembly with CSharpCodeProvider, from a C# source saved into a
I generate some code using CXF from a WSDL-file. When compiling the code with
I want to be able to generate IIS's standard 404 response, not a custom
I want to generate and play a continuous sound with specific frequencies and amplitudes
I want to generate a continuous curve based on some data, but the curve
Intro Some continuous-integration tools (say, Hudson) assume compilers generate warnings of different severity (aka
How can I create a continuous animation with an image in iOS? i want
I've generated three line plots, but the data isn't really continuous, so I'd like
To generate the following markup: <label class=foo>Bar</label> The PHP will look something like: <?php
I generate EMMA reports during my build, they look like this <report> <stats> <packages

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.