Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Accessing elements of built in primes function

2 visualizzazioni (ultimi 30 giorni)
Aleem Andrew
Aleem Andrew il 11 Nov 2020
Chiuso: MATLAB Answer Bot il 20 Ago 2021
How can the a particular prime of the primes function, which returns a double, be accessed?
primes(15)
class(primes(15))

Risposte (1)

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

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by