imaqhwinfo
"Image Acquisition Hardware Info" tells you what cameras you have available.
vid = videoinput('macvideo', 1, 'YCbCr422_1280x720')
Specify the video channel and the output format.
preview(vid)
Display the video stream.
Thursday, 28 November 2013
Sunday, 24 November 2013
Version Control On Google Drive
To upload a new version of an existing file:
Right click on the file name
Select Manage Revisions … from the menu
Click on Upload New Revision
Right click on the file name
Select Manage Revisions … from the menu
Click on Upload New Revision
source: http://cumulusglobal.com/cms/tuesday-take-away-version-control-with-google-drive
Sunday, 10 November 2013
Restrictions on Double Indexing in MATLAB
You can follow {} referencing by () referencing, {}(), but you cannot use ()() or (){} or ().{} or ().(), and you cannot use function(){} or function()() or function().field
source: http://www.mathworks.com/matlabcentral/answers/25890
source: http://www.mathworks.com/matlabcentral/answers/25890
Friday, 8 November 2013
Adding code blocks to blogger
To put a “code” block in any of your blogger blog posts, you have to first modify your template a bit.
1. Login to your blogger account
2. Go to Layout > Edit HTML
3. Find ]]></b:skin>
and just ABOVE it, add this line of code:
code {background:#EEEEEE; font-family: Trebuchet MS; display:block; border:1px solid #999999; padding:10px;}
Screen Capture in OSX
Launch Terminal and use the following syntax:
defaults write com.apple.screencapture location /path/
For example, if I want to have the screenshots appear in my Pictures folder, I would use:
defaults write com.apple.screencapture location ~/Pictures/
To have the changes take effect, you then must type and restart.
killall SystemUIServer
source: http://osxdaily.com/2011/01/26/change-the-screenshot-save-file-location-in-mac-os-x/
Wednesday, 6 November 2013
Assigning Default Applications to a File Type on OSX
For Mac OSX 10.6:
1. Open a New Finder Window and browse to a file of the type you'd like to change the extension.
2. Click on the file. Go to File in the top left and select "Get Info".
3. Go to "Open With" and expand that section.
4. Click on the drop down and select the program you'd like this file type to be associated to.
5. Click on the "Change All" button and "Continue"
source: http://www.mathworks.com/support/solutions/en/data/1-18ELZ/index.html
1. Open a New Finder Window and browse to a file of the type you'd like to change the extension.
2. Click on the file. Go to File in the top left and select "Get Info".
3. Go to "Open With" and expand that section.
4. Click on the drop down and select the program you'd like this file type to be associated to.
5. Click on the "Change All" button and "Continue"
source: http://www.mathworks.com/support/solutions/en/data/1-18ELZ/index.html
Default Types in MATLAB
Changing the default format of types in MATLAB [to long]:
'format long'
To return to doubles:
'format'
'format long'
To return to doubles:
'format'
Tuesday, 5 November 2013
Diet
11/5/13
- Putting Butter in Coffee
- MCT oil, a common supplement that claims to be all-naturally from compressed oils of palms and coconut. Just like butter, it touts itself as being fuel that helps energize your body and jumpstart your metabolism.
- Paleo Diet
- Based on foods are ancestors would have thrived on.
References:
http://thepaleodiet.com/
www.reddit.com/r/nutrition/
Changing the Default Style in Google Docs
11/5/13
After making changes to the style in your google doc, click on the drop down menu that specifies the font type (typically this has the default field 'Normal text'). Under the Options gear, you will be able to select "save as my default style".
Source: http://www.googlegooru.com/change-the-default-font-in-google-docs/
Adding Virtual Desktops in OSX
Hit F3. Hover to the left/right of where you see the other desktops and you will be given the option to add another desktop.
Source: http://www.macworld.com/article/1165649/how_to_add_additional_desktop_spaces.html
Source: http://www.macworld.com/article/1165649/how_to_add_additional_desktop_spaces.html
Multiple Plots in One Scope in Simulink
Open the scope.
Open Scope Properties.
Change number of axes (allows multiple input ports).
Rerun simulation.
Open Scope Properties.
Change number of axes (allows multiple input ports).
Rerun simulation.
Suppressing Warnings in MATLAB
warning on verbose
Displays the command that can be used to turn the warning off.
Source: http://www.mathworks.com/support/solutions/en/data/1-QESD6/
Displays the command that can be used to turn the warning off.
Source: http://www.mathworks.com/support/solutions/en/data/1-QESD6/
Subscribe to:
Posts (Atom)