may i ask how to separate a value into two different values? For example, 12 can be separate into 8 and 4..
1 回表示 (過去 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!