New to Matlab and need help with simple calc

조회 수: 1 (최근 30일)
Neesha
Neesha 2013년 10월 31일
댓글: Walter Roberson 2013년 11월 6일
I have two matrices not in particular order for the context info. As per file attached - tab 'MatlabForum'
For given Restaurant name and Item Name i want to multiple 'Type' Ordered with dish for the given qtr.
For example
RestaurantThree Tacos 2500*50 in QuarterOne and so on up to QuarterFour
How do i do it?
For
  댓글 수: 10
Andy
Andy 2013년 11월 6일
Have you thought about just running the matrices through a sort routine to start with? A simple "bubble" sort would be quick for a short matrix, you would just have to check both the Restaurant and Item columns.
Walter Roberson
Walter Roberson 2013년 11월 6일
ismember() or strcmp()

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by