Construct a permutation matrix from two vectors
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Lama Hamadeh
el 23 de Mzo. de 2023
Editada: Bruno Luong
el 23 de Mzo. de 2023
Hi,
If I have two vectors:
a = [1 ; 2 ; 3];
b = [4 ; 5 ; 6];
How can I constrcut a matrix that has the shape of:
Thanks.
0 comentarios
Respuesta aceptada
Más respuestas (1)
Bruno Luong
el 23 de Mzo. de 2023
Editada: Bruno Luong
el 23 de Mzo. de 2023
combinations, new stock function in R2023a
a = [1 ; 2 ; 3];
b = [4 ; 5 ; 6];
combinations(a,b)
0 comentarios
Ver también
Categorías
Más información sobre Multidimensional Arrays 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!