Create a row vector
Ältere Kommentare anzeigen
Create a row vector named x that starts at 1, ends at 10, and contains 5 elements.
3 Kommentare
Balanarayanan
am 23 Jan. 2023
Create a row vector named b that starts at 1, ends at 10, and contains 5 elements.
Image Analyst
am 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.
Walter Roberson
am 16 Okt. 2024
Carter comments to Image Analyst:
Real Homies would help
Akzeptierte Antwort
Weitere Antworten (2)
Image Analyst
am 24 Jun. 2021
0 Stimmen
You learn these basics in the first half hour of the intro MATLAB course. Evidently you need to take this:
3 Kommentare
Balanarayanan
am 23 Jan. 2023
Transpose b from a row vector to a column vector using the transpose operator.
Image Analyst
am 23 Jan. 2023
b=b'
Voss
am 16 Okt. 2024
The transpose operator is .'
' is the complex conjugate transpose operator.
Meghana
am 28 Aug. 2024
0 Stimmen
Create a row vector that has the following elements: , , , , 129, and .
1 Kommentar
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.
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!