Ich war die letzten beiden Tage mal wieder unterwegs in Deutschland. Wer weiß wo das Haus, in dem ich übrigens auch gerne ne Wohnung hätte, wenn es in Karlsruhe stehen würde, steht, weiß auch wo ich war. Jedenfalls war ich zum Arbeiten da und hab die Stadt nur im Vorbeigehen kurz sehen können. Bei der Arbeit hatte ich dafür ziemlich Spaß. Ich habe versucht ein Matlabscript zu schreiben um meine Messdaten besonders schön darzustellen. Aus irgendeinem mir immernoch unbekannten Grund, schrieb Matlab aber nur NaN (not a number) in die Matrix. Weil ich darüber so verzweifelt war, tippte ich im Command Window „warum“ ein. Das kannte Matlab natürlich nicht und in einem Anflug von Wahnwitz, formulierte ich meine Frage dann auf englisch: „Why“. Und ich bekam Antwort. „Pete wanted it that way.“ gab Matlab aus. Ich war so begeistert, dass ich gleich nochmal „why“ frug. Und nochmal, und nochmal. Matlab generierte daraufhin immer neue Antworten, die meistens sogar Sinn ergaben. Meine Favorits waren „The computer did it.“, „To satisfy the smart and terrified hamster.“, „How should I know?“ und „In the beginning, God created the heavens and the earth…“.

Die zugehörige Helpdatei und die why.m-Datei habe ich mir dann auch mal angeschaut.

>>help why
WHY Provides succinct answers to almost any question.
WHY, by itself, provides a random answer.
WHY(N) provides the N-th answer.
Please embellish or modify this function to suit your own tastes.

Spektakulär, dass da tatsächlich ein Programmierer Zeit damit verbracht hat das zu programmieren. Allerdings hat sich’s wirklich gelohnt. Mein Ärger auf Matlab war verflogen (obwohl das Problem seit dem auf Eis liegt).
Hier noch ein Auszug aus dem m-file. Die special_cases finde ich nämlich am Besten.

function a = special_case
switch fix(12*rand)
case 0, a = ‚why not?‘;
case 1, a = ‚don“t ask!‘;
case 2, a = ‚it“s your karma.‘;
case 3, a = ’stupid question!‘;
case 4, a = ‚how should I know?‘;
case 5, a = ‚can you rephrase that?‘;
case 6, a = ‚it should be obvious.‘;
case 7, a = ‚the devil made me do it.‘;
case 8, a = ‚the computer did it.‘;
case 9, a = ‚the customer is always right.‘;
case 10, a = ‚in the beginning, God created the heavens and the earth…‘;
otherwise,a = ‚don“t you have something better to do?‘;
end