may i ask how to separate a value into two different values? For example, 12 can be separate into 8 and 4..
2 次查看(过去 30 天)
显示 更早的评论
may i ask how to separate a value into two different values? For example, 12 can be separate into 8 and 4..
2 个评论
Stephen23
2016-4-22
12 can be separated into an infinite number of numbers. What is so special about 8 and 4 ?
采纳的回答
Azzi Abdelmalek
2016-4-22
编辑:Azzi Abdelmalek
2016-4-22
If you mean how to do it randomly with integer numbers:
N=12
a=randi(N)
b=N-a
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!