Error: Unable to perform assignment because the left and right sides have a different number of elements.

1 次查看(过去 30 天)
Please help me:)
v2=11.5;
k1=-0.5748;
k2=0.4468;
k3=0.0128;
for i = 1:1:6
z = 1:1:6;
z1 = 0:1:6-1;
e1(i) = ((-v2/2)+(0.125*(z1)))*k1
e2(i) = ((-v2/2)+(0.125*(z1)))*k2;
e6(i) = ((-v2/2)+(0.125*(z1)))*k3;
e1(i) = ((-v2/2)-(0.125*(z)))*k1;
e2(i) = ((-v2/2)-(0.125*(z)))*k2;
e6(i) = ((-v2/2)-(0.125*(z)))*k3;
end
  5 个评论

请先登录,再进行评论。

采纳的回答

Ahmed Anas
Ahmed Anas 2020-3-14
v2=11.5;
k1=-0.5748;
k2=0.4468;
k3=0.0128;
z = 1:1:6;
z1 = 0:1:5;
for i = 1:1:6
e1(i) = ((-v2/2)+(0.125*(z1(i))))*k1;
e2(i) = ((-v2/2)+(0.125*(z1(i))))*k2;
e6(i) = ((-v2/2)+(0.125*(z1(i))))*k3;
e1(i) = ((-v2/2)-(0.125*(z(i))))*k1;
e2(i) = ((-v2/2)-(0.125*(z(i))))*k2;
e6(i) = ((-v2/2)-(0.125*(z(i))))*k3;
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by