How we can do the matrix and vector in vector form?
Afficher commentaires plus anciens
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 commentaires
Dyuman Joshi
le 13 Déc 2023
It's not clear what the expected output is.
Vims
le 13 Déc 2023
Vims
le 13 Déc 2023
Réponse acceptée
Plus de réponses (2)
3 commentaires
Vims
le 13 Déc 2023
Vims
le 13 Déc 2023
Dyuman Joshi
le 13 Déc 2023
Modifié(e) : Dyuman Joshi
le 13 Déc 2023
That's a good start.
Now, use indexing to split the data, and reverse the steps of method 1.
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
