I want to assign values in column 2-6 corresponding to each element in coulmn 1

1 次查看(过去 30 天)
kindly tell the functions required for writning the program and explain them as well
  2 个评论
N/A
N/A 2017-12-27
a=[rice wheat cotton]
b=[3kg 2 kg 5kg]
now what i want is that rice should come equal to 2kg and like this
rice=3kg
wheat=2kg
cotton=5kg

请先登录,再进行评论。

采纳的回答

KSSV
KSSV 2017-12-26
It is a straight forward job..if you know how to index matrices sin matlab..please read about this here: https://in.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html.

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by