All possible Combinations and equation analysis
Mostrar comentarios más antiguos
Hello everyone,
1) How can I get all possible combinations?
for example: a=[1 2] , b=[2 3] , c=[1 4] and I want this as a result
d1=1 2 1
d2=2 2 1
d3=1 3 1
d4=2 3 1
d5=1 2 4
d6=2 2 4
d7=1 3 4
d8=2 3 4
2) After that, how can i compute this equation F = X1(X2-X3) for all d?
For example d1=1 2 1 so is F1=1*(2-1)=1 etc.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Function Creation 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!