hi every one>>>I use (from workspace) to represented as disturbance input to the simulink block ,but I get this error(The last dimension of each 'signals.values' field must be the same as the number of rows in the 'time' field) please any one help me
조회 수: 2 (최근 30일)
이전 댓글 표시
M = 1;
xf = 1;
A = 21;
B = 10;
T = 10;
p = 0.1;
dx = xf/A;
xn = [0:A]'*dx;
dt = (T/B);
v = (T*dt^2)/(M*dx);
s = dt^2/M;
r = 0.8*((dt^2*T)/(dx^2*p));
tn = [0:B]*dt;
%o = tn';
f = zeros(length(xn),length(tn));
k=xn*tn;
for m = 2:length(tn)-1
for n = 2:length(xn)-1
f(n,m) = (3+sin(pi*xn(n)'*tn(m))+sin(2*pi*xn(n)'*tn(m))+sin(3*pi*xn(n)'*tn(m)))*(xn(n)'/1000);
end
end
data11.time= tn';
if true
% code
end
data11.signals.values = f;
data11.signals.dimensions=size(k);
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!