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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:08:52+00:00 2026-06-04T05:08:52+00:00

I am plotting number of correct and functioning sensors at each 100 runs. I

  • 0

I am plotting number of correct and functioning sensors at each 100 runs.

I will get the following plot:
result wrt runs

The 100 readings taken for each of the runs is somewhat confusing.
How can I make matlab plot

  1. At every 5 values (5,15,20….)

  2. The average of 5 runs so that number of plots will be 100/5.

can you help in these two cases thanks

if round=10 in the original case will have 10 bars,

With the formula given by @Richante data_to_plot = data(1:5:end); will have 2 bars. Great but when I plot will get values at Round 1 and 2. How to display that these are for rounds 1 and 5?

  • 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-04T05:08:53+00:00Added an answer on June 4, 2026 at 5:08 am

    You can plot every 5th item by slicing the array:

    data = %1-by-100 array
    data_to_plot = data(1:5:end);
    

    To plot the average of 5 runs, you could do a for-loop:

    data_to_plot = zeros(1, 20);
    for i=1:20
      data_to_plot = mean(data((i-1)*5:i*5));
    end
    

    Or a neat way is to reshape the array into a 5-by-20 matrix and take the mean in the first dimension:

    data_to_plot = mean(reshape(data, 5, 20));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to label each bar of a histogram with either the number of
I have a dataframe df.all and I'm plotting it in a bar plot with
I have a number of bash scripts which invoke R scripts for plotting things.
Hi I am ploting some data using BY GROUP option, and saving each plot
I'm trying to find a graphing tool that runs clients side that will allow
I am plotting a continuous variable against a factor using plot() in R (see
When plotting a function using Plot, I would like to obtain the set of
I have a number of graphics objects which I am plotting in a graphics
I'm plotting a scatter plot with three columns: Green group: x y pointlabel 48,6
I am trying to make a scatter plot in Python. I supposed it will

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.