Loren on the Art of MATLAB

January 26th, 2009

Opportunity to Hunt for MathWorks Swag

Have you ever gotten involved in geocaching? Have you ever wanted a MathWorks laser pointer / flashlight? You have a chance of combining both of these interests if you happen to be near the Los Angeles (used to incorrectly say Bay) area in California.

Sam Mirsky has posted the challenge to the MATLAB newsgroup.

Here's a couple of pictures of the swag from my phone camera.

I1 = imread('laser1.jpg');
I2 = imread('laser2.jpg');
whos
  Name        Size                  Bytes  Class    Attributes

  I1        960x1280x3            3686400  uint8              
  I2        960x1280x3            3686400  uint8              
  J1        240x320x3              230400  uint8              
  J2        240x320x3              230400  uint8              

Let me downsample the pictures to display in the blog using imresize from Image Processing Toolbox. You can a learn more about image processing on Steve's blog.

J1 = imresize(I1,.25);
imshow(J1)
J2 = imresize(I2,.25);
imshow(J2)

Don't forget the hint: Underground, but not buried, in a round hole. If you find it, in addition to returning the code to Sam, can you please post here? Have fun!


Get the MATLAB code

Published with MATLAB® 7.7

3 Responses to “Opportunity to Hunt for MathWorks Swag”

  1. Sam Mirsky replied on :

    Hi Loren, thanks for highlighting my hide.

    As a correction, it is hidden in Los Angeles (near LAX) not in the Bay Area.

  2. Tony Kelman replied on :

    I found the first laser pointer led flashlight near LAX last night. If anyone else from LA goes looking for it, at least you can eat at In-N-Out and watch the planes land.

  3. Loren replied on :

    Tony-

    Thanks for hunting!

    And Sam, let’s work on stashing some goodies elsewhere. Talk to you at work.

    –Loren

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Loren Shure works on design of the MATLAB language at The MathWorks. She writes here about once a week on MATLAB programming and related topics.

  • Loren: Paul- There *are* issues depending on the sizes of ii and jj. And it’s a bit complicated, but really...
  • Loren: Bob- You don’t say what happens when you run your code. Can you please explain more. It looks like you...
  • Loren: Kishore- It is not clear to me what you are trying to actually achieve. If you want to concatenate the 4...
  • Kishore: sorry, in the previous code mat2cell(c,[19 121],[19 134],[19 84],[19 107])
  • Kishore: Hi Loren, Why does the following not work? data_classwise = [19x121 double] [19x134 double] [19x84 double]...
  • Paul Jackson: Loren, Are there any aspects of empty matrices that may be tricky when they are used as indices into...
  • Bob: Hi Lori, Im trying to process Unicode text files from more than one different locales than the standard latin...
  • Loren: Ben- The reference link in my post documents the behavior of sum([]) and prod([]) (although the prod part only...
  • Ben: Loren/Andrey, A further advantage of having sum([])==0 and prod([])==1 is that it’s consistent with array...
  • Loren: OysterEngineer- I will SO take you up on that offer. Can’t wait for a good reason to visit now....

These postings are the author's and don't necessarily represent the opinions of The MathWorks.