About 280,000 results
Open links in new tab
  1. How to create an array from a while loop - MATLAB Answers

    Mar 29, 2014 · Your program must create two arrays namely; time and bact. Array time contains the time values and array bact contains the bacteria count. Plot number of bacteria versus …

  2. matlab - Building an array while looping - Stack Overflow

    Jan 25, 2012 · I have a for loop that loops over one array... for i=1:length (myArray) In this loop, I want to do check on the value of myArray and add it to another array myArray2 if it meets …

  3. How to add values to an array using a while loop - MATLAB

    Mar 5, 2021 · How do you add values from a while loop to an empty array? I've tried adding it into the loop, I've tried appending it but nothing seems to work the empty array only outputs one …

  4. Need to create an array that consists of 5 numbers found through …

    Nov 20, 2024 · I am creating a game where you loop through a while loop and get a random number between set values. If your number is within a range you get points and that is added …

  5. How to create an array from a while loop - MATLAB Answers

    Your program must create two arrays namely; time and bact. Array time contains the time values and array bact contains the bacteria count. Plot number of bacteria versus time. Your plot …

  6. Create an array from a loop in MATLAB? - Stack Overflow

    Sep 27, 2015 · What i am trying to accomplish is: Lets assume High is an array of length 100 (Length = 100). I want to get the highest numbers of in sets of 20 in new array. Ex: …

  7. How to use an array as an input in a while loop - MATLAB

    How to use an array as an input in a while loop. Learn more about array I need to make the input of t2 vary from 1 to 360 degrees so I can plot it on a graph with R4. t2 as the x input and R4 as …

  8. While loop for the elements of an array - MATLAB Answers

    I have an array: a=[1 1 1 1 1 1 1 10 1 1 1 1 1 1 12 1 1 1 1 3]; I want to make a while loop that does the following enas=0; while a(i)==1 % enas=enas+1; end But I don'...

  9. create arrays in a loop - MATLAB Answers - MATLAB Central

    Jul 31, 2013 · Learn more about array, struct, name, loop, iterate is it possible to create arrays in a loop. For instance iterate over a i=1:10 and for each value of i create a new array (with a …

  10. Conducting a while-loop in Matlab with arrays - Stack Overflow

    Nov 30, 2015 · Use the discretised equation to calculate A as a function of time. Every time step in the program corresponds to a period of 10 millon years. Run the model for 200 time units (is …

  11. Some results have been removed