select first 15 from ans
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kiruthiga Sekar
le 26 Avr 2019
Réponse apportée : Star Strider
le 26 Avr 2019
Hi,
When I execute a particular function, it produces 70 values in ans. But i want only first 15 values stored in a array variable. How do I do it?
TIA
0 commentaires
Réponse acceptée
Star Strider
le 26 Avr 2019
It appears that you are calling the function without an output assignment.
Call it as:
v = theFunction(x);
then:
v = v(1:15);
to keep only those elements you want.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!