Difference between () and ([])
이전 댓글 표시
What is the difference C=rand(4,10) and C=rand([4,10])
답변 (1개)
KSSV
2017년 12월 26일
0 개 추천
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
Prabha Kumaresan
2017년 12월 26일
편집: Walter Roberson
2017년 12월 26일
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.
Prabha Kumaresan
2017년 12월 26일
카테고리
도움말 센터 및 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!