Create a row vector
227 views (last 30 days)
Show older comments
Francis Adams Kwofie
on 24 Jun 2021
Commented: Image Analyst
on 23 Jan 2023
Create a row vector named x that starts at 1, ends at 10, and contains 5 elements.
3 Comments
Balanarayanan
on 23 Jan 2023
Transpose b from a row vector to a column vector using the transpose operator.
Image Analyst
on 23 Jan 2023
@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.
Accepted Answer
More Answers (1)
Image Analyst
on 24 Jun 2021
You learn these basics in the first half hour of the intro MATLAB course. Evidently you need to take this:
2 Comments
Balanarayanan
on 23 Jan 2023
Transpose b from a row vector to a column vector using the transpose operator.
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!