Error Message
Unable to perform assignment because the left and right sides have a different number of elements.
Error in test5 (line 24)
h1New(c) = ((VFull - discharge)/al(c));
d = 7.2;
al = 11500;
cd = 0.8;
ct = 0.5;
g = 9.807;
p = 1029;
A = 40.715;
h1 = 14.05;
h2 = Height(4851:21600,:);
VFull = 161575;
for c=1:16749
discharge(c) = cd*A*(sqrt(2*g*((abs(h1-h2(c)))))) ;
V = discharge(c)/A;
Power = (1/2)*ct*p*A*V^3;
NewVolume(c) = VFull - discharge(c);
VFull=NewVolume(c);
h1New(c) = ((VFull - discharge)/al(c));
h1=h1New(c);
end
0 Comments
Sign in to comment.