My objective is to create a script which takes a matrix at the entrance(admission) and that must generate another matrix at exit(release) by duplicating the first matrix: for example: The input matrix: A_input = [IN B N/A; D N/A F; N/A H I] with: N/A of the first line is able to be: C or D N/A of the second line is able to be: E or F N/A of the last line is able to be: G or H therefore script has to generate: A_output = [IN B G; IN B H; D E F; D F F; C H I; D H I] used language: matlab script. Script must fit to the entry(entrance,admission) matrix, therefore dynamic and not that on example. therefore script has to generate: A_output = [IN B G; IN B H; D E F; D F F; C H I; D H I] used language: matlab script. Script must fit to the entry(entrance,admission) matrix, therefore dynamic and not that on example. Continue reading...