Difference between () and ([])

조회 수: 2 (최근 30일)
Prabha Kumaresan
Prabha Kumaresan 2017년 12월 26일
댓글: Prabha Kumaresan 2017년 12월 26일
What is the difference C=rand(4,10) and C=rand([4,10])

답변 (1개)

KSSV
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
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
Prabha Kumaresan 2017년 12월 26일
ok

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by