Borrar filtros
Borrar filtros

How to store values from toc into an array

22 visualizaciones (últimos 30 días)
Raiven Balderas
Raiven Balderas el 7 de Feb. de 2018
Editada: Walter Roberson el 7 de Feb. de 2018
help with bonus question
  1 comentario
Raiven Balderas
Raiven Balderas el 7 de Feb. de 2018
i need help with question 5 and the bonus depicted in the screenshot/attachment

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 7 de Feb. de 2018
tic;
for K = 1 : 10
times(K) = toc;
end
  6 comentarios
Raiven Balderas
Raiven Balderas el 7 de Feb. de 2018
thanks, how do i do the bonus ?
Walter Roberson
Walter Roberson el 7 de Feb. de 2018
Editada: Walter Roberson el 7 de Feb. de 2018
You write a function named prime_count that takes n as an input and returns a vector named Upsilon which is of length n, each element of which is the number of prime numbers less than or equal to its index. The function prime_count must call prime_sieve exactly once -- however, it is not required that your function use the results returned by prime_sieve .

Iniciar sesión para comentar.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by