Please, how can I program this in MATLAB?

1 view (last 30 days)
A = [3 6 8 9 632 28 56 1360]
T = [4 7 12 21 54 18 22 15]
Please, how can I acheive this in MATLAB?
R(3,1) = 4
R(6,1) = 7
R(8,1) = 12
R(9,1) = 21
R(632,1)= 54
R(28,1) = 18
R(56,1) = 22
R(1360,1) = 15
Thank you.

Accepted Answer

Star Strider
Star Strider on 17 Mar 2017
This works:
A = [3 6 8 9 632 28 56 1360];
T = [4 7 12 21 54 18 22 15];
R(A) = T;
  2 Comments
SAMUEL AYINDE
SAMUEL AYINDE on 17 Mar 2017
Thank you so much, Star Strider. God bless you.

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!