Can someone show me how to replace the 4th elements of vector a2 with c1, and name the new vector a4?

1 次查看(过去 30 天)
a2 = [1.1 2.2 3 4.4 5.5];
c1 = 5-7i

采纳的回答

KSSV
KSSV 2016-9-7
clc; clear all
a2 = [1.1 2.2 3 4.4 5.5];
c1 = 5-7i ;
a4 = a2 ;
a4(4) = c1 ;

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by