Error: Unable to perform assignment because the left and right sides have a different number of elements.
조회 수: 2 (최근 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
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!