Tuesday, April 5, 2011

Q. How the hell do I write a matlab text file with a header?

A.
filename = [filename '_back.txt']
fid = fopen(filename,'w+')
header = ['m4, m1, m2, m3, m5']
fprintf(fid,'%s\n',header)
fclose(fid);

The trick is the %s which writes a string instead of just one character at a time.. otherwise you'll end up with comma's between every letter. There goes two hours of my life :(

Wednesday, March 16, 2011

Abort Labview??

Q. If i've accidentally got Labview in an infinte loop with an ever-repeating error box, how can I stop execution and save the program so that I don't lose all of my work?

A. Alt+F4 ... often times you won't be able to press 'Abort Execution', but if you Alt+F4 you'll quit the program and should have a chance to save.

Wednesday, December 29, 2010

Q. RSS Feed Address?

Ok, how on earth do I see the address corresponding to an RSS feed in Apple Mail? If i want to forward someone the address to an RSS feed, how to I do that? A. ????

Thursday, September 30, 2010

Q. Copy Figure doesn't work in Matlab on a Mac

A. You can't 'copy figure' while the figure is docked. You have to undock it first

Sunday, March 21, 2010

Sunday, March 14, 2010

Q. How do you close all open graphs in Igor Pro?

A. There is no default way to do this, but a clever Japanese man (or woman, i don't know) came up with the following short trick to do the job (see above). The actual text is posted in the comment section for your copying ability.

Thursday, February 18, 2010

 Key ??

Q. What is the keyboard command for the 'command' symbol in Mac OSX?

A. There isn't one.

alt + shift + k =  but the only way to get the command symbol is to use the character palette. To use it in HTML the code is "⌘"
& #x2318 without the space between the & and the #