may i ask how to separate a value into two different values? For example, 12 can be separate into 8 and 4..
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
loong seow li
il 22 Apr 2016
Commentato: loong seow li
il 23 Apr 2016
may i ask how to separate a value into two different values? For example, 12 can be separate into 8 and 4..
2 Commenti
Stephen23
il 22 Apr 2016
12 can be separated into an infinite number of numbers. What is so special about 8 and 4 ?
Risposta accettata
Azzi Abdelmalek
il 22 Apr 2016
Modificato: Azzi Abdelmalek
il 22 Apr 2016
If you mean how to do it randomly with integer numbers:
N=12
a=randi(N)
b=N-a
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!