Q. Is torque a function of speed?
Q. How do you calculate the torque of a ball screw assembly?
A.
Ever run into a problem or a question that you were sure someone else HAD to have dealt with the same thing, yet you could not find any answer on the internet? Or you did find answers, but it took you hours or even days? This blog is simply a running account of the questions and answers that I have struggled with. May it save you gray hairs and sleepless nights.
Monday, September 28, 2009
Tuesday, June 23, 2009
Q: Matlab - How do you get numbers to format with zeros?
i.e. I have a bunch of file names that look like 0001, 0002 .... 0237 and so on. To create strings in order to load the files, I have to do something like
Filenumber = 1:237;
for x = Filenumber
Name = num2str(x)
eval('load(' Name ')')
end
but that doesn't work because I need the Filenumber to be '0001' not just '1'. :(
A. Use num2str(20,'%04i')
Wednesday, May 27, 2009
Q. How do you make Spotlight search for system files by default?
A. The published solution below will require you to use Command+F in finder to activate, but its nice because now you have the choice. Normal spotlight will act.. normally. Command+f will include all system files.
Q. What does ~/ mean when describing folders on a mac?
A. The tilda refers to the users home directory.
i.e. ~'/Library' = 'jlross/Library' for me
Wednesday, October 22, 2008
Challenge!
This is a challenge to any and all computer hackers, wizards, geeks
and guru's out there. Below is a link to a LATEX file that was
corrupted by Time Machine. I have an entire hard drive full of files
just like this. If you can decrypt the mess that this file is, I am
offering a $100 reward (assuming the decryption allows me to decrypt
other files on my computer as well) Hey, its not much money, but i'm
a grad student so what can you expect?
and guru's out there. Below is a link to a LATEX file that was
corrupted by Time Machine. I have an entire hard drive full of files
just like this. If you can decrypt the mess that this file is, I am
offering a $100 reward (assuming the decryption allows me to decrypt
other files on my computer as well) Hey, its not much money, but i'm
a grad student so what can you expect?
Good luck!
Wednesday, June 25, 2008
Q. How do you delete a whole column of a matrix in Matlab?
A. Use empty brackets! i.e
A =[1 2 3 ; 4 5 6 ; 7 8 9]
A(2, :) = []
A=[1 2 3 ; 7 8 9]
Wednesday, May 14, 2008
Q. What is the equivalent of the Matlab Eval command in Igor Pro?
A. The simple answer is $ but for more information you nned to see Chapter 1 in the Programming and Reference guide. section III-16 under Strings, String Expressions, Strings in Text Waves.
Example:
String Str1 = "Today_is_" + date()
Make $Str1
Subscribe to:
Posts (Atom)