How to store values in matrix with similar index number of other matrix?

조회 수: 1 (최근 30일)
AS
AS 2020년 3월 3일
댓글: AS 2020년 3월 3일
I have one matrix A=[1 2 1 3 3 2 2 1 3 ] and another matrix B=[72 24 67]. Now want to generate new matrix with the values i.e 1=72 , 2=24 and 3=67 with similar index number of A. The new A matrix will be, A_new=[72 24 72 67 67 24 24 72 67]. How I will be getting this new matrix of A_new?Please help me to solve this

채택된 답변

Alex Mcaulley
Alex Mcaulley 2020년 3월 3일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by