Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
what does this line mean
조회 수: 3 (최근 30일)
이전 댓글 표시
t= [ones(1,10) 1+ones(1,10) 2+ones(1,15) 3+ones(1,10) ];
댓글 수: 1
답변 (1개)
Benjamin Großmann
2020년 2월 26일
ones(r, c) creates an array of ones with r rows and c columns. That said, ones(1, c) creates a line vector with c elements. Here, four line vectors are created and written side by side in one line vector. Therefore, t is a line vector containing 10 ones, 10 twos, 15 threes and 10 fours.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!