Matrix variable manipulation
Mostrar comentarios más antiguos
Hi,
I have a 3x1 string vector and a 3 by 3x3 matrix with values,
A= ['AAA';'BBB';'CCC'] B=[1 2 3;1 2 3;1 2 3]
what code can I use to create 3 new variables out of my string vector and assign them values from my matrix.
so that the result looks like this
AAA= [1;1;1] BBB= [2;2;2] CCC= [3;3;3]
Respuesta aceptada
Más respuestas (1)
Categorías
Más información sobre Variables 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!