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 Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by