Clear Filters
Clear Filters

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

1 view (last 30 days)
kindly tell the functions required for writning the program and explain them as well
  2 Comments
N/A
N/A on 27 Dec 2017
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

Sign in to comment.

Accepted Answer

KSSV
KSSV on 26 Dec 2017
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!