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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:22:41+00:00 2026-06-11T03:22:41+00:00

I have many data need to be plotted as waterfall in matlab. I have

  • 0

I have many data need to be plotted as waterfall in matlab. I have more than 10 columns of data, each column represents one data data set. I put all data in a big matrix such that the first data set put in the first row of matrix, the second data set will be in the second row … etc. After all those data stored in a matrix, I use the waterfall to plot those data. For each column, it contains about 10,000 data points which corresponds to x variable ranged from -5 to 5. But in the waterfall, it shows 0 to 10, 000 instead of -5 to 5 in the x axis. How do I force matlab to show the correct range? thx

mydata = zeros(13, 10000);
mydata(1, :) = ... ;  % first data set
mydata(2, :) = ... ;  % second data set
...
mydata(13, :) = ... ; % last data set
waterfall(mydata)
  • 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-11T03:22:42+00:00Added an answer on June 11, 2026 at 3:22 am

    If you look at the documentation for waterfall (you can do this easily by placing the cursor in the command in your editor and hitting F1), you will see that you can invoke the waterfall command with different syntax . .

    % Syntax
    
    waterfall(Z) 
    waterfall(X,Y,Z) 
    waterfall(...,C) 
    waterfall(axes_handles,...) 
    h = waterfall(...) 
    

    Rather than just call the waterfall plot with the data Z, supply it with the X and Y range data also. For example . . .

    mydata = rand(13, 10000);
    Y = 1:size(mydata,1);
    X = linspace(-5, 5,size(mydata,2));
    
    waterfall(X, Y , mydata)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have many timestamp columns that I need to use with mixed timezones. The
I have 2 views in SQL set up: PurchaseOrder PurchaseOrderLineItems These have many columns
A] Problem Summary: I have one to many data models in my project. I
In my project I need to aggregate many data in one string and later
This question is based on the thread . If we have one-to-many data structure,
I have a table which holds the data of many seq_id. Each seq_id has
I have an application with tabs. In one tab I need to put data
I have many PDF forms, I would need to fill them each in php
I have many many XML files that often contain nodes mutiple times (each time
I need help programatically graphing more points than can fit in a single Excel

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.