New to Matlab and need help with simple calc

1 Ansicht (letzte 30 Tage)
Neesha
Neesha am 31 Okt. 2013
Kommentiert: Walter Roberson am 6 Nov. 2013
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 Kommentare
Andy
Andy am 6 Nov. 2013
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 am 6 Nov. 2013
ismember() or strcmp()

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by