1 Star 1 Fork 0

JeffreyChan / mpc

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
computeHPred.m 331 Bytes
Copy Edit Web IDE Raw Blame History
Colin Calas authored 2017-08-25 14:23 . first commit
function H = computeHPred(A, B, C, ny, nu)
H_tmp = cell(ny,nu);
tmp = B;
for i=1:nu
for k=1:(i-1)
H_tmp{k,i} = zeros(3,2);
end
for j=i:ny
H_tmp{j,i} = C*tmp;
tmp = A*tmp;
end
tmp = B;
end
H = cell2mat(H_tmp);
end

Comment ( 0 )

Sign in for post a comment

Matlab
1
https://gitee.com/jeffreychan/mpc.git
git@gitee.com:jeffreychan/mpc.git
jeffreychan
mpc
mpc
master

Search