Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
kindly tell the functions required for writning the program and explain them as well
  2 Kommentare
James Tursa
James Tursa am 24 Dez. 2017
Please provide a small example of input(s) and desired output(s).
N/A
N/A am 27 Dez. 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

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

KSSV
KSSV am 26 Dez. 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.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by