Please, how can I program this in MATLAB?

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.

 採用された回答

Star Strider
Star Strider 2017 年 3 月 17 日

0 投票

This works:
A = [3 6 8 9 632 28 56 1360];
T = [4 7 12 21 54 18 22 15];
R(A) = T;

2 件のコメント

SAMUEL AYINDE
SAMUEL AYINDE 2017 年 3 月 17 日
Thank you so much, Star Strider. God bless you.
Star Strider
Star Strider 2017 年 3 月 17 日
As always, my pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by