Getting a concatenation error of my matrices when i try and run the program, it ran before and haven’t changed anything since then but today it has refused to cooperate.
It gives me the ‘dimensions of arrays being concatenated are not consistent’ error when I try and run the file. my matrixs are as follows:
A = [0, 1, 0, 0; -k1/ms, -b/ms, k1/ms, b/ms; 0, 0, 0, 1; k1/mus, b/mus, -((k1+k2)/mus), -b/mus]
B = [0, 0; 1/ms, 0; 0, 0; -1/mus, k2/mus]
C = [1, 0, 0, 0]
D = [0, 0]
Any advice would be useful, it ran the other day when I built it and i havent changed anything since it ran last so not sure what the error could beIt gives me the ‘dimensions of arrays being concatenated are not consistent’ error when I try and run the file. my matrixs are as follows:
A = [0, 1, 0, 0; -k1/ms, -b/ms, k1/ms, b/ms; 0, 0, 0, 1; k1/mus, b/mus, -((k1+k2)/mus), -b/mus]
B = [0, 0; 1/ms, 0; 0, 0; -1/mus, k2/mus]
C = [1, 0, 0, 0]
D = [0, 0]
Any advice would be useful, it ran the other day when I built it and i havent changed anything since it ran last so not sure what the error could be It gives me the ‘dimensions of arrays being concatenated are not consistent’ error when I try and run the file. my matrixs are as follows:
A = [0, 1, 0, 0; -k1/ms, -b/ms, k1/ms, b/ms; 0, 0, 0, 1; k1/mus, b/mus, -((k1+k2)/mus), -b/mus]
B = [0, 0; 1/ms, 0; 0, 0; -1/mus, k2/mus]
C = [1, 0, 0, 0]
D = [0, 0]
Any advice would be useful, it ran the other day when I built it and i havent changed anything since it ran last so not sure what the error could be matrix concatenation, state space block MATLAB Answers — New Questions