assign values for the list of numbers in the column from a look up lable

1 次查看(过去 30 天)
I have a table
x = [10; 20; 30; 40; 50;]; %look up table
and i have y =
1
4
5
and I want to assign 1=10; 4=40; 5=50;
and so if i have new values of y =
2
5
then I assign 2=20; 5=50;

采纳的回答

Walter Roberson
Walter Roberson 2019-8-2
  3 个评论

请先登录,再进行评论。

更多回答(1 个)

JL
JL 2019-8-2
Thanks Walter, it is working!

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by