may i ask how to separate a value into two different values? For example, 12 can be separate into 8 and 4..
2 views (last 30 days)
Show older comments
loong seow li
on 22 Apr 2016
Commented: loong seow li
on 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 Comments
Stephen23
on 22 Apr 2016
12 can be separated into an infinite number of numbers. What is so special about 8 and 4 ?
Accepted Answer
Azzi Abdelmalek
on 22 Apr 2016
Edited: Azzi Abdelmalek
on 22 Apr 2016
If you mean how to do it randomly with integer numbers:
N=12
a=randi(N)
b=N-a
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!