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