Search code examples
matlabmatrixsimulink

Matlab/Simulink : Replace a column in a matrix in Simulink


I just want to know if an easy method exists to replace entirely a column of a matrix by an another one ? I can do it by using recursively a concatenate block but it seems a bit onerous...

Thanks


Solution

  • Now an answer for Simulink, this basically implements the same as M=magic(5);M(:,2)=1:5

    enter image description here