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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:34:29+00:00 2026-06-13T21:34:29+00:00

I want to superimpose a line on top of a spectrogram (plotted using imagesc).

  • 0

I want to superimpose a line on top of a spectrogram (plotted using imagesc). I am unable to do this using the “hold on” command. I also want to show a y scale for the line that I am plotting over the spectrogram. (Note: Spectrogram already shows a yscale of frequency values on the left hand side of the plot, I want yscale for the new line to show up on the right hand side)

MATLAB’s online documentation shows a way to plot to functions in a single figure with two y axes… but this doesnt seem to work with imagesc
http://www.mathworks.com/help/matlab/ref/plotyy.html

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

    Just use hold on… here’s an example:

    % generate some figure;
    imagesc(); 
    hold on
    x=1:0.1:70; % just some vector that fits the size of imagesc
    plot(x,35+10*sin(x),'k'); 
    

    enter image description here

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

Sidebar

Related Questions

I am using Python matplotlib. i want to superimpose scatter plots. I know how
Want to trigger itemClicked event for a QTreeWidget Item using the following code. connect(aTreeWidget,SIGNAL(itemClicked(QTreeWidgetItem*,int)),this,SLOT(CallM(QTreeWidgetItem*
I am using relative layout to superimpose one smaller image on top of a
want to know why String behaves like value type while using ==. String s1
Want to show UIButton done on UIScrollView for images. With the below code UIButton
Want to verify that my understanding of how this works. Have a C++ Class
I'd like to know exactly how this line of code works corners = (m==n)&(n>threshold);
I have a 3-tuple data set (X,Y,Z points) that I want to plot using
Want to attach an Event Handler/Listener to some links using the delegate() method, but
Want to know in detail about the purpose of the info Command in redis

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.