필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
N/A
N/A 2017년 12월 24일
댓글: N/A 2017년 12월 27일
kindly tell the functions required for writning the program and explain them as well
  댓글 수: 2
James Tursa
James Tursa 2017년 12월 24일
Please provide a small example of input(s) and desired output(s).
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.
  댓글 수: 2
N/A
N/A 2017년 12월 27일
but i actually wanted something like i mentioned in a previous comment on james tusra comments

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by