Create a row vector
显示 更早的评论
Create a row vector named x that starts at 1, ends at 10, and contains 5 elements.
3 个评论
Balanarayanan
2023-1-23
Create a row vector named b that starts at 1, ends at 10, and contains 5 elements.
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.
Walter Roberson
2024-10-16
Carter comments to Image Analyst:
Real Homies would help
采纳的回答
更多回答(2 个)
Image Analyst
2021-6-24
0 个投票
You learn these basics in the first half hour of the intro MATLAB course. Evidently you need to take this:
3 个评论
Balanarayanan
2023-1-23
Transpose b from a row vector to a column vector using the transpose operator.
Image Analyst
2023-1-23
b=b'
Voss
2024-10-16
The transpose operator is .'
' is the complex conjugate transpose operator.
Meghana
2024-8-28
0 个投票
Create a row vector that has the following elements: , , , , 129, and .
1 个评论
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.
类别
在 帮助中心 和 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!