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
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!