Rank: 2966 based on 39 downloads (last 30 days) and 2 files submitted
photo

Bob Kagy

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Bob Kagy View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Sep 2007 Screenshot Unit Conversion Tools Command line, GUI, & Simulink block to convert physical units Author: Bob Kagy physical unit convert... 22 3
  • 4.0
4.0 | 2 ratings
06 Dec 2004 Convert Number Bases Convert from any numerical base and encoding to any other, even for large numbers. Author: Bob Kagy convert, number, base, miscellaneous, utilities 17 3
Comments and Ratings on Bob Kagy's Files View all
Updated File Comment by Comments Rating
26 Feb 2013 Convert Number Bases Convert from any numerical base and encoding to any other, even for large numbers. Author: Bob Kagy John D'Errico

Worked in my test for a large number of digits. My only disappointment is that this test should logically have worked:

cnvbase('1234567890123456789012345678901234567890',10,255)

cnvbase requires in & inBase be of the same class
Class of in: char
Class of inBase: double

ans =
[]

Yet, amazingly given the error message, this next test DID work properly, yielding the correct result:

cnvbase('1234567890123456789012345678901234567890','0123456789',0:255)

ans =
3 160 201 32 117 192 219 243 184 172 188 95 150 206 63 10 210

Somehow, that makes the interface seem just a bit screwy, given the help and the error message. Otherwise I might like to rate this 5 stars.

26 Feb 2013 Convert Number Bases Convert from any numerical base and encoding to any other, even for large numbers. Author: Bob Kagy Muthu Annamalai

Finally a real base converter in MATLAB; all other base64 implementations I find are thin wrappers over some Java APIs.
Thanks!

26 Oct 2009 Unit Conversion Tools Command line, GUI, & Simulink block to convert physical units Author: Bob Kagy Turner

The unit_conversion for Fahrenheit is incorrect!

Tried: unit_conversion(0, 'degK','degF')=-255.3722
Should be: unit_conversion(0, 'degK','degF')=−459.67
Tried: unit_conversion(0,'degC','degF')=236.2978
Shuld be: unit_conversion(0,'degC','degF')=32

Also added in two more units and included 'in' aka 'inch' as follows :
'unit',{{'mrad','mradian','mil'}},... %T.J. Modified
'isSI',[0,0,0],...
'gain',.001,...
'bias',0,...
'inv',false),...
struct(...

'unit',{{'moa','MOA'}},... %T.J. Modified
'isSI',[0,0],...
'gain',6283/60/360,...
'bias',0,...
'inv',false),...

'unit',{{'inch','in'}},...
'isSI',[0,0],...
'gain',0.0254,...
'bias',0,...
'inv',false),...
struct(...

% Finally fixed Fahrenheit with following code:
'unit',{{'Fahrenheit','degF'}},...
'isSI',[0,0],...
'gain',5/9,... % kelvin = 5/9 * ( degF - 32 ) + 273.15 = 5/9 * degF - 5/9 * 32 + 273.15
'bias',459.67,... %T.J. modified, %orginal (5/9)*(-32)+273.15
'inv',false),...
struct(...

27 Sep 2007 Unit Conversion Tools Command line, GUI, & Simulink block to convert physical units Author: Bob Kagy

Please bear me with one more comment. It will be very helpful if the authors can provide a help file (.pdf) listing the names or abbreviations of the units involved in this program. Thanks.

27 Sep 2007 Unit Conversion Tools Command line, GUI, & Simulink block to convert physical units Author: Bob Kagy

It is a good program to handle the conversion between different unit systems. The authors' may notice that there is a small mistake in the mass unit conversion, where the "kilogram" was supposed to be the common unit instead of "gram".
Thanks, really good work!

Contact us