Row vector and corresponding column vector for each row
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to create a single row vector with each element of the row array being a column vector and I want to access a certain element of any row number and the column which would be user-defined.
4 commentaires
Réponses (1)
Jos (10584)
le 5 Déc 2017
Something like this?
% two cell arrays (being column vectors) of strings
c1 = {'hello', 'friend'}
c2 = {'my' ; 'name' ; 'is' ; 'joe'}
% create cell row vector holding these cell array of strings
r = {c1 c2}
3 commentaires
Jos (10584)
le 5 Déc 2017
Modifié(e) : Jos (10584)
le 5 Déc 2017
Sorry, you've lost me. I suggest you read the Getting Started section of the manual and learn about cell arrays and structs. These might be what you are looking for.
Voir également
Catégories
En savoir plus sur Cell Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!