Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Accessing elements of built in primes function

1 visualización (últimos 30 días)
Aleem Andrew
Aleem Andrew el 11 de Nov. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
How can the a particular prime of the primes function, which returns a double, be accessed?
primes(15)
class(primes(15))

Respuestas (1)

James Tursa
James Tursa el 11 de Nov. de 2020
p = primes(15);
p(1) is the first element
p(2) is the second element
etc.

Community Treasure Hunt

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

Start Hunting!

Translated by