what will be the multiplication of all c values in loop (in given example), i.e. c1*c2*c3*c4*c5?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MOHD UWAIS
am 12 Sep. 2022
Bearbeitet: Torsten
am 12 Sep. 2022
a=[1 2 3 4 5];
b=[0 1 0 6 4];
for i=1:5
c=[1 2+a(i); 1*b(i) 5]
end
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!