may i ask how to separate a value into two different values? For example, 12 can be separate into 8 and 4..
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
loong seow li
le 22 Avr 2016
Commenté : loong seow li
le 23 Avr 2016
may i ask how to separate a value into two different values? For example, 12 can be separate into 8 and 4..
2 commentaires
Stephen23
le 22 Avr 2016
12 can be separated into an infinite number of numbers. What is so special about 8 and 4 ?
Réponse acceptée
Azzi Abdelmalek
le 22 Avr 2016
Modifié(e) : Azzi Abdelmalek
le 22 Avr 2016
If you mean how to do it randomly with integer numbers:
N=12
a=randi(N)
b=N-a
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!