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
computeDy.m 238 Bytes
Copy Edit Web IDE Raw Blame History
Colin Calas authored 2017-08-25 14:23 . first commit
function Dy = computeDy(Xmin, Xmax, ny)
Dy_tmp = cell(2*ny);
for i=1:2*ny
if i <= ny
Dy_tmp{i,1} = Xmax;
else
Dy_tmp{i,1} = -Xmin;
end
end
Dy =cell2mat(Dy_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