How do I make a "^" character in MATLAB?

internationalization, matlab, windows-xp

Solution

Create a toolbar shortcut, give it a name, and put the following in the callback:

clipboard('copy','^')

Running this will place the exponent character `^` in your clipboard. Once you press it, do a Ctrl+V to paste it.

You can apply this idea to create a clip library of snippets accessible from MATLAB's Start menu.

Problem

`^` is the exponential operator in MATLAB. The problem with it is that it isn't present on a lot of non-english keyboard layouts, and if you use it a lot in your work, switching between HR and EN becomes troublesome. Is there a way to add it to MATLAB's toolbar (like in Excel, so you can use it via mouse or touchpad), or to define a custom key (for example, F12) in MATLAB to replace it? I'm hoping for a non AHK solution, and the like.

Original source