Create a row vector
398 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Francis Adams Kwofie
el 24 de Jun. de 2021
Comentada: Nate
el 9 de Sept. de 2025 a las 18:26
Create a row vector named x that starts at 1, ends at 10, and contains 5 elements.
3 comentarios
Image Analyst
el 23 de En. de 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.
Respuesta aceptada
Más respuestas (2)
Image Analyst
el 24 de Jun. de 2021
You learn these basics in the first half hour of the intro MATLAB course. Evidently you need to take this:
3 comentarios
Voss
el 16 de Oct. de 2024
The transpose operator is .'
' is the complex conjugate transpose operator.
Meghana
el 28 de Ag. de 2024
Create a row vector that has the following elements: , , , , 129, and .
1 comentario
DGM
el 28 de Ag. de 2024
Editada: DGM
el 28 de Ag. de 2024
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.
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!