Error: Unable to perform assignment because the left and right sides have a different number of elements.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
HAHA
am 14 Mär. 2020
Beantwortet: Ahmed Anas
am 14 Mär. 2020
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 Kommentare
Akzeptierte Antwort
Ahmed Anas
am 14 Mär. 2020
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 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!