About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • Last update: 5 years ago
  • Total downloads: 41
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Sean de (8 other programs)
See full specifications

scripts default icongunits (Scripts) Publisher's description

Function to convert units using Google

help gunits

%Function to convert units using Google
%SCd 09/01/2010
%gunits searches using the Google convention e.g: '3ft to in'
%Input Arguments:
% -before: string with number and unit such as:
% '3ft', '17c','17lbf/in^2', '3 ft*lbf'
% -after: unit you wish to convert such as: (respectively)
% 'mm', 'f', 'N/ft^2','Newton*m'
% NOTE1: Google can be picky with the input. It's recommended
% to spell everything out and fill in multiplication/division/powers
% if you're having issues. Example:
% >>gunits('3psi','psf')
% ans = '3 psi' %if outNum was called; an error would've been produced
% >>gunits('3lbf/in^2','lbf/ft^2')
% ans = 3 (lbf / (in^2)) = 432 lbf / (ft^2)
% NOTE2: The units should be distinguishable with spaces removed e.g:
% 'lbf ft' becomes 'lbfft' which is not a unit. To fix use 'lbf*ft'
%Output Arguments:
% -outStr: string with the conversion
% -outNum: numeric value of answer (only if asked for)
% The algorithm used for retrieving the string is based solely on Google's
% web format. As (unfortunately!), I do not own or control Google, their
% format is subject to change, which could nullify the results of this program.
% Please let me know if this happens.

System Requirements:

MATLAB 7.9 (2009b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

gunits (Scripts) Tags:

Click on a tag to find related softwares

Is gunits (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.