what is the meaning of the code?
조회 수: 2 (최근 30일)
이전 댓글 표시
last16 = 42*ones(16,1);
채택된 답변
Image Analyst
2015년 9월 20일
It first uses the ones() function to make a 16-by-1 column vector of 1's. Then since it multiplies that by 42, it ends up with a column vector where every element has the value of 42. Any time you see a function that you don't know what it does, look it up in the help.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!