Difference between () and ([])
조회 수: 2 (최근 30일)
이전 댓글 표시
What is the difference C=rand(4,10) and C=rand([4,10])
댓글 수: 0
답변 (1개)
KSSV
2017년 12월 26일
I don't think it makes any difference...both the cases you will get a random matrix of size 4X10...in fact [4,10] this needs a bit of more typing.
댓글 수: 3
Walter Roberson
2017년 12월 26일
There is a very small difference in the time it takes to parse the arguments. There is no difference in the functionality.
참고 항목
카테고리
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!