Create a row vector
조회 수: 460 (최근 30일)
이전 댓글 표시
Create a row vector named x that starts at 1, ends at 10, and contains 5 elements.
댓글 수: 3
Image Analyst
2023년 1월 23일
@Balanarayanan This looks like a homework problem. If you have any questions ask your instructor or read the link below to get started:
Obviously we can't give you the full solution because you're not allowed to turn in our code as your own, but it will involve linspace and the ' (apostrophe) symbol.
채택된 답변
추가 답변 (2개)
Image Analyst
2021년 6월 24일
You learn these basics in the first half hour of the intro MATLAB course. Evidently you need to take this:
댓글 수: 3
Meghana
2024년 8월 28일
Create a row vector that has the following elements: , , , , 129, and .
댓글 수: 1
DGM
2024년 8월 28일
편집: DGM
2024년 8월 28일
Oh that's easy
a = 129
Note that a scalar is both a row vector and a column vector. It's also a matrix.
% yes, it's a row vector
[isscalar(a) isvector(a) isrow(a) iscolumn(a) ismatrix(a)]
You probably didn't want that, but you never bothered to actually check to see if what you copy-pasted actually worked.
참고 항목
카테고리
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!