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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:59:35+00:00 2026-06-14T22:59:35+00:00

In my program , suppose I fix no. of users N=6 . Threshold value

  • 0

In my program , suppose I fix no. of users N=6 .
Threshold value of SIR SIRo=6; Output generated is SIRmean=10 (suppose).

I want to make a loop so that

if SIRmean < SIRo

   disp N=6

else

  decrease the counter till SIRmean> SIRo
   and display the value of N for which this condition holds true.

end
  • 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-14T22:59:37+00:00Added an answer on June 14, 2026 at 10:59 pm

    You can use simple for loop with downcounter and break on condition:

    N=6;
    for k=N:-1:0
       SIRmean = calc_SIR_mean(N);
       if SIRmean < SIRo
          disp(['N=' k])
          break;
       end
    end
    

    Function calc_SIR_mean should return mean value based on number of users (it is not clear from your question how you receive this value).

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

Sidebar

Related Questions

I have a requirement such that my program is suppose to run for a
So I'm writing a program that is suppose to run forever (client server stuff)
Suppose I have a program that initializes a global variable for use by threads,
Suppose I have a big program that consists of hundreds of methods in it.
Probably missing something basic, but I have a for-loop in my program that's supposed
My program is suppose to count the occurrence of each character in a file
Suppose my program creates a large array of data which I then save with
I m making an rmi client server based program which is suppose to pass
Say suppose I am running a java program through command line. And this program
Suppose public class Program { public static void Main(string[] args) { Program p =

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.