MATLAB Answers

Transpose x from a row vector to a column vector using the transpose operator. The program is prompting the x does not have correct values. the code i have entered is below

8 views (last 30 days)
Satish Kumar
Satish Kumar on 9 Jun 2021
Answered: Hammad Ur Rahman on 23 Jun 2021
TASK
Transpose x from a row vector to a column vector using the transpose operator.
The code i wrote is the following
x=[1:5;]
x=x'
Test Results:
Incorrect!
Does x have five elements? ok
Is x a column vector? ok
Does x have the correct values? Not correct

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!