jump to navigation

Save Matlab figure as image file March 15, 2009

Posted by viboon in : Matlab , add a comment
1
saveas(gcf,'filename','format')

ext Value Format
ai Adobe® Illustrator `88
bmp Windows bitmap
emf Enhanced metafile
eps EPS Level 1
fig MATLAB figure (invalid for Simulink block diagrams)
jpg JPEG image (invalid for Simulink block diagrams)
m MATLAB M-file (invalid for Simulink block diagrams)
pbm Portable bitmap
pcx Paintbrush 24-bit
pdf Portable Document Format
pgm Portable Graymap
png Portable Network Graphics
ppm Portable Pixmap
tif TIFF image, compressed

Tags: , ,

Related posts:

Microsoft Office 2007 Add-in: Microsoft Save as PDF or XPS March 7, 2009

Posted by viboon in : MS Office , add a comment

Microsoft Office 2007 Add-in: Microsoft Save as PDF or XPS

Download


Tags: , , ,

Related posts:

How do I determine my Host ID (Machine ID)? March 7, 2009

Posted by viboon in : Matlab , add a comment

==========
Windows® (all)
==========
For standalone licenses (including the Student version), the Host ID can be either the volume serial number of the C:\ drive (Option 1), or the MAC Address (Physical Address) of the first Ethernet adapter (Option 2).

For network licenses, the Host ID can be the MAC Address (Physical Address) of the first Ethernet adapter (Option 2) or the IP Address of the first Ethernet adapter (Option 3).

Option 1:
Volume Serial Number (Standalone licenses & Student Version only)

To obtain the Volume Serial Number, open a Command Prompt window, and run the command:

vol c:

The Host ID will be “DISK_SERIAL_NUM=” and the volume serial number listed without the dashes (ex. DISK_SERIAL_NUM=1234abcd).

Option 2:
MAC Address (Physical Address, All licenses)

To obtain the MAC Address, open a Command Prompt window, and run the command:

getmac

Use the first Physical Address listed without the dashes (ex. 001122aabbcc).

Option 3:
IP Address (Network licenses only)

To obtain the IP address, open a Command Prompt window, and run the command:

ipconfig

==========
Solaris™
==========
Option 1:
MAC Address (Standalone or Network licenses)

To obtain this value, run the following command in a Terminal window:

/usr/sbin/arp 'hostname'

The MAC Address will be displayed in the form of 0:3:ba:26:1:b0 — leading zeros are removed. For this example, the actual MAC Address would be 00:03:ba:26:01:b0. When using entering the Host ID, make sure to include all leading zeros and remove the colons.

Option 2:
CPU hostid (Student Version & Network licenses only)

To get this value, run the command “hostid” in a Terminal window.

==========
Linux®
==========
For a Linux machine, the Host ID is the MAC Address of the eth0 device (first Ethernet device). To obtain this value, run the following command in a Terminal window:

/sbin/ifconfig eth0

The Host ID will be the value listed next to the tag “HWaddr” without the colons.

==========
Mac OS® X
==========
For a Mac OS X machine, the Host ID is the MAC Address of the built in Ethernet device (en0). To obtain this value, use Terminal in /Applications/Utilities and run the command:

netstat -I en0

The Host ID is listed in the first row of the output, under the “Address” column without the colons.


Tags: ,

Related posts:

To transfer the MATLAB & Simulink Student Version license to a new machine March 7, 2009

Posted by viboon in : Matlab , add a comment

The MathWorks allows you to activate the MATLAB Student Version on up to two machines. If you need to install MATLAB on a third machine, you will have to uninstall MATLAB from one of your other computers before installing on this new machine.

If you have MATLAB installed on two machines and wish to transfer MATLAB to another, follow the steps below:
(more…)


Tags: ,

Related posts:

How to get data from a graph in MatLab March 7, 2009

Posted by viboon in : Matlab , add a comment
1
2
3
4
5
6
7
8
9
axes=get(gcf, 'Children');
pos=get(axes(1), 'Children');
 
get(pos) %to see its properties
 
x=get(pos, 'XData');
y=get(pos, 'YData');
 
plot(x,y,'*');

Tags: , ,

Related posts:

Matlab R2008b Student version March 7, 2009

Posted by viboon in : Matlab , add a comment

Student version can provide all features as the professional version has, except some minor differences.

Matlab section:
- The MATLAB prompt in Student Version is EDU>>
- Printouts contain this footer: Student Version of MATLAB

Simulink section:
- Models are limited to 1000 blocks.
- Accelerator and Rapid-Accelerator simulation modes are not available in Student Version.
- Model reference blocks cannot be used
- Printouts contain this footer: Student Version of MATLAB

For more details: http://www.mathworks.com/academia/student_version/


Tags:

Related posts:

Additional plugins for Photoshop CS4 March 7, 2009

Posted by viboon in : Photoshop , add a comment

Some filters were missing such as Extract. In order to get them back, we can download them from:

http://www.adobe.com/support/downloads/product.jsp?product=39&platform=Windows


Tags: ,

Related posts:

Fix load cycle count problem in Ubuntu March 7, 2009

Posted by viboon in : Ubuntu , add a comment

Install Smart Monitoring Tool

Sudo apt-get install smartmontools

Check the number of load cycle count

sudo smartctl -a /dev/sda | grep Load_Cycle_Count

Stay as root in the terminal

sudo -s

Create a file /etc/acpi/99-hdd-spin-fix.sh

#!/bin/sh
hdparm -B 254 /dev/sda

Copy to these destinations

cp /etc/acpi/99-hdd-spin-fix.sh /etc/acpi/start.d
cp /etc/acpi/99-hdd-spin-fix.sh /etc/acpi/suspend.d
cp /etc/acpi/99-hdd-spin-fix.sh /etc/acpi/resume.d

Tags: ,

Related posts: