Problems with Matlab Projects? You may face many Problems, but do not worry we are ready to solve your Problems. All you need to do is just leave your Comments. We will assure you that you will find a solution to your project along with future tips. On Request we will Mail you Matlab Codes for Registered Members of this site only, at free service...Follow Me.

Matlab Units Conversion Toolbox

This toolbox attaches units to Matlab variables and enables unit conversion.










Have you ever needed to convert horse power to watts but can't remember the conversion factor? How many inches light travels in a microsecond? This toolbox is designed to make getting these answers much easier.
The "unit" statement attaches units to a variable. For example, 
>> x=unit(2,'yards') 
  
x = 
     1.8288 m
returns the answer in International (SI) units. If you would rather have you answer in feet it can be converted to feet by
>> convert(x,'feet') 
  
ans = 
     6 feet
Variables created by the "unit" statement can operated on by these operators:
      Unary plus, Unary minus, +,-,*,.*,/,\,./,.\,^,.^,',.' 
      and sqrt
Variables are also supported by triginometric,hyperbolic, and exponential functions and can be compared by
       ==, ~=, >, <, >=, and <=
Special plotting routines are available for plotting variables with units. These are:
      plot, semilogx, semilogy, and loglog
The toolbox appears in the html help screens and has "GettingStarted', "User Guide", and function help screens.
Just down load the tool box to the directory of you choice and set the Matlab path to include this directory. To verify operation, type
>> unit('yards') 
  
ans = 
     0.9144 m
If you get this result, you are all set!


0 comments:

Post a Comment

Recent Comments

Popular Matlab Topics

Share your knowledge - help others

Crazy over Matlab Projects ? - Join Now - Follow Me

Sites U Missed to Visit ?

Related Posts Plugin for WordPress, Blogger...

Latest Articles

Special Search For Matlab Projects

MATLAB PROJECTS

counter

Bharadwaj. Powered by Blogger.