MATLAB Community

MATLAB, community & more

4 Uses of MATLAB Mobile This Thanksgiving

1. Chef Aide
When cooking a large meal, I often need to make quick calculations and substitutions. For instance, how to handle measuring when all my tablespoons are in the sink? After pre-loading the Units Conversion Toolbox from the file exchange into MATLAB, I can figure out a workaround lickety-split:

Sure there are plenty of apps that will do this easier and out of the box, but that’s not as much fun as using MATLAB.

2. Black Friday Deal Calculator
How do you know how much are you going to save on a deal? In addition to all the powerful linear algebra built into MATLAB, it can also function as basic calculator. You can use MATLAB Mobile to calculate final prices, how much it will cost to drive across town to save an additional $10 on the same item, etc.

 

3. Winning the football pool
With a little matrix manipulation and pre-computed probabilities, we can find out which boxes in a standard football pool have the best odds of winning. This is for the kind where you choose a square representing the last digit of the two teams’ scores. Thanks to the data from , we can figure which square has the best odds:

 

Here’s the code if you want to cut & paste. Special thanks to Ned Gulley for inspiring this one.

prob = [1.7100 1.4800 0.5600 3.2100 2.0400 0.7200 1.5400 3.8000 0.9500 0.7400; ...
 1.4800 0.8500 0.3300 1.0000 2.2300 0.2400 0.9500 1.9300 1.3500 0.5600;...
 0.5600 0.3300 0.0400 0.5400 0.6500 0.3300 0.3500 0.4600 0.2200 0.3200;...
 3.2100 1.0000 0.5400 1.1900 1.4500 0.5200 1.6300 1.9300 0.6100 0.7200;...
 2.0400 2.2300 0.6500 1.4500 1.5900 0.5000 0.8200 3.7100 0.7200 0.6700;...
 0.7200 0.2400 0.3300 0.5200 0.5000 0.1900 0.2200 0.7600 0.6900 0.2400;...
 1.5400 0.9500 0.3500 1.6300 0.8200 0.2200 0.5600 0.8900 0.4800 0.6900;...
 3.8000 1.9300 0.4600 1.9300 3.7100 0.7600 0.8900 1.9300 0.8300 0.8000;...
 0.9500 1.3500 0.2200 0.6100 0.7200 0.6900 0.4800 0.8300 0.4100 0.3000;...
 0.7400 0.5600 0.3200 0.7200 0.6700 0.2400 0.6900 0.8000 0.3000 0.1900];

[~,IX] = sort(prob(:),'descend');
[row,col]=ind2sub(size(prob),IX);
bestscores = horzcat(row-1,col-1)

4. A Reason To Be Thankful
Some families’ tradition includes everyone stating a reason to be thankful. In addition to a thoughtful and inspired answer, why not throw out a joke one as well. The why function is always good for coming up with an answer on the spot.

 

Have a safe and happy Thanksgiving.

|

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.