How to find a specific value from a matrix having columns within columns

1 次查看(过去 30 天)
Hello, I want to know how can we find a specific value from a matrix that has columns within columns. To better understand, I have attached an image of the table from which i am trying to find out specific value. I have witten a code where i am getting the values for neck legs and trunk after which i have to use the attached table to find the corresponding score associated with that. For ex: if the neck score is 1, leg score is 2 and trunk score is 4, we get a value of 5 from the table. It would be great if someone can help me get that value using matlab code. Also, I have created that table in an excel format. I appreciate your help. Thank you!

采纳的回答

Matt J
Matt J 2020-7-26
编辑:Matt J 2020-7-26
You haven't mentioned in what form you are holding this data, but my recommendation would be to hold it as a 3x4x5 matrix, A. Then, you can simply lookup as for example A(neck_score, leg_score,trunk_score).

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Biomechanics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by