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

  • Home
  • SEARCH
  • 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 8471259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:44:51+00:00 2026-06-10T16:44:51+00:00

I am using the built-in Matlab plot function to make many plots from a

  • 0

I am using the built-in Matlab “plot” function to make many plots from a lot of data. Every single one of them works except for one. What’s even more strange is that the one that doesn’t work essentially has identical code to others that do work.

Here’s the part of the code that’s supposed to plot in a separate figure:

f = figure;
ax = subplot(1,1,1, 'Position',[0.1 0.16 0.8 0.815]);
grid(ax, 'on')
hold(ax, 'on')
plot(ax, x, y)

Where x is a 100×1 double matrix of all the same number and y is a 100×1 uint32 matrix of all the same number, both of which are previously defined.

The axes come up in the figure just fine, but as soon as I try to plot anything the axes disappear and it becomes just a blank figure window.

This person had a similar problem, but the solution still didn’t work for me (even in debug mode):

http://www.mathworks.fr/matlabcentral/newsreader/view_thread/286813

The only thing I can possibly think of that’s different about this data set versus others that I’ve successfully plotted is that x and y are repetitive… could this have anything to do with it? Does Matlab have a “limit” to how many points it can plot at one time?

Any idea why this is happening to me or how to fix it? Any help is greatly appreciated. Thank you in advance.

  • 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-10T16:44:53+00:00Added an answer on June 10, 2026 at 4:44 pm

    It was just an issue of bad data. The numbers Matlab was reading in were too small and so couldn’t be plotted. Regenerating some better test data solved my problem. Thank you to those who offered suggestions!

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

Sidebar

Related Questions

I was using the built-in sort function of Matlab: [temp, Idx] = sort(M,2); I
I'm using Ember built from git master. My RouteManager is not complex, but when
I've built a Matlab/Simulink model that I'm using to simulate the performance of an
How can I make a simple low-pass FIR filter using Matlab (without using the
I'm looking for a built-in Matlab function that sums two polynomial. Example: p1(x) and
Here is the docstring for the MATLAB built-in function spones(S) : spones Replace nonzero
I am using Matlab to do one of my projects. I am stuck at
I'm implementing PCA using eigenvalue decomposition for sparse data. I know matlab has PCA
So, I've recently started using Matlab's built-in profiler on a regular basis, and I've
I have a Matlab function compiled into C library. I am using this library

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.