How we can do the matrix and vector in vector form?
Mostrar comentarios más antiguos
clc;
clear all ;
close all;
format long g;
%% developing the function for the reverse in the vector concate and reverse it
A = [1;2;3]
B = [4 5 6;8 9 11]
[numRows,numCols] = size(B)
%% new vector will be vector form
C = vertcat(A,[B])
3 comentarios
Dyuman Joshi
el 13 de Dic. de 2023
It's not clear what the expected output is.
Vims
el 13 de Dic. de 2023
Vims
el 13 de Dic. de 2023
Respuesta aceptada
Más respuestas (2)
madhan ravi
el 13 de Dic. de 2023
B = B.';
Wanted = [A; B(:)]
1 comentario
Vims
el 13 de Dic. de 2023
3 comentarios
Vims
el 13 de Dic. de 2023
Vims
el 13 de Dic. de 2023
Dyuman Joshi
el 13 de Dic. de 2023
Editada: Dyuman Joshi
el 13 de Dic. de 2023
That's a good start.
Now, use indexing to split the data, and reverse the steps of method 1.
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
