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에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!