Likely the easiest way is to create an (Nx3) matrix for ‘u’, with the constant inputs as constant vectors:
N = 3501;
u = [ones(N,1)*C1, ones(n,1)*C2, array_input];
with ‘C1’ and ‘C2’ the constant values. Be sure that ‘t’ is also (3501x1).
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!