Why You Should Date Someone Who Knows MATLAB

MathWorks Editor
Feb 13, 2019 · 2 min read

By Ned Gulley

Happy Valentines Day! I have been working with the MATLAB community since we launched MATLAB Central wa-aaay back at the beginning of this century. On more than one occasion we have been asked to consider some sort of matchmaking service on the site. While we never acted on this interesting proposition, it does lead to a certain line of reasoning. Namely, what are the romantic possibilities of MATLAB?

With this in mind, we present herewith (and wholly tongue in cheek), ten reasons why you should consider dating someone with a working knowledge of MATLAB.

Please don’t take them too seriously…

Number 1.

With one-based indexing, you’ll always be number one in their heart, never zero.

u = [1 2 3 4] u(1)ans = 1

Number 2.

They can make emoji out of working code. Sort of like making balloon animals.

See the second line below? It reports the first column of the matrix A. Is that just standard MATLAB code? Or is it… a little miner guy with a lamp on his helmet and a turned up nose?

A = invhilb(4); A(:,1)ans =4×1 16 -120 240 -140

Number 3.

They know how to get abs of steel. Like this.

steel = -17; abs(steel)ans = 17

Number 4.

They know that being prompt is good, but double prompt is even better.

>>

Number 5.

They know how to give you a seal of approval. Or at least a ceil of approval. Like this.

approval = pi; ceil(approval)ans = 4

Number 6.

They know how to get their ducks in a row. Like this.

% ducks in a (Moler) matrix ducks = gallery('moler',3)ducks =3×3 1 -1 -1 -1 2 0 -1 0 3% ducks in a row ducks(:)'ans =1×9 1 -1 -1 -1 2 0 -1 0 3

Number 7.

They can draw you a heart ( thanks Cleve!). Like this.

h = ezplot('(x^2+y^2-1)^3 = x^2*y^3', ... [-1.5,1.5,-1.2,1.5]); h.LineWidth = 5; colormap([1 0 0])

Number 8.

They have magic built right in. Try it!

% You are the one u = 1; % Here is magic for you magic(4*u)ans =4×4 16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1

Number 9.

They know how to make room for you in their life.

% Nothing else matters close all; clear all % You are everything u = infu = Inf

Number 10.

MATLAB is for lovers. And if you want to know why, they always have an answer ready.

whyFor the love of a smart and terrified mathematician.

Originally published at https://blogs.mathworks.com on February 13, 2019.

MathWorks Editor

Written by

MathWorks

MathWorks

We at MathWorks believe in the importance of engineers and scientists. They increase human knowledge and profoundly improve our standard of living. We created MATLAB and Simulink to help them do their best work.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade