Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
N/A
N/A le 24 Déc 2017
Commenté : N/A le 27 Déc 2017
kindly tell the functions required for writning the program and explain them as well
  2 commentaires
James Tursa
James Tursa le 24 Déc 2017
Please provide a small example of input(s) and desired output(s).
N/A
N/A le 27 Déc 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

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 26 Déc 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.
  2 commentaires
N/A
N/A le 27 Déc 2017
but i actually wanted something like i mentioned in a previous comment on james tusra comments

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by