Can someone show me how to replace the 4th elements of vector a2 with c1, and name the new vector a4?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Omar Abedalrahman
am 7 Sep. 2016
Beantwortet: KSSV
am 7 Sep. 2016
a2 = [1.1 2.2 3 4.4 5.5];
c1 = 5-7i
0 Kommentare
Akzeptierte Antwort
KSSV
am 7 Sep. 2016
clc; clear all
a2 = [1.1 2.2 3 4.4 5.5];
c1 = 5-7i ;
a4 = a2 ;
a4(4) = c1 ;
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!