Rank: 215 based on 368 downloads (last 30 days) and 22 files submitted
photo

Sky Sartorius

E-mail
Company/University
Technical University of Munich
Lat/Long
48.26584, 11.6685

Personal Profile:

B.S. Aeronautical Engineering
M.Sc. Aerospace System Design

Professional Interests:
aircraft design, design software, UAVs, optimization, rotorcraft

 

Watch this Author's files

 

Files Posted by Sky View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 May 2014 Screenshot STDATMO: Standard Atmosphere Function Gas properties at altitudes from N-dim input. Non-standard atmospheres capable. Many units supported Author: Sky Sartorius aerospace, atmosphere, international standar..., 1976 standard atmosph..., standard atmosphere, aeronautics 66 4
  • 5.0
5.0 | 5 ratings
19 May 2014 Screenshot DimensionedVariable Class - units support for MATLAB A new variable type allowing use of real-world units and dimensions with enforced unit consistency. Author: Sky Sartorius units, dimensioned, aerospace, imperial, si, dimensions 21 6
  • 5.0
5.0 | 2 ratings
24 Oct 2013 Screenshot Density altitude calculator Finds altitudes in the standard atmosphere that correspond to the provided array of air densities. Author: Sky Sartorius aerospace, atmosphere, standard atmosphere, isa, density, altitude 20 0
22 Oct 2013 MCD - My change directory Quickly switch to a recent or preferred directory from the command line. Author: Sky Sartorius utilities, directories, cd, pwd, navigation, path 14 0
22 Oct 2013 Screenshot TXTMENU - Text-Based Menu List in Command Window With Prompt Displays a list of options in the command window, prompts the user, and returns the selection. Author: Sky Sartorius menu, ui, list, prompt, default, keyboard 13 0
Comments and Ratings by Sky View all
Updated File Comments Rating
16 May 2014 DimensionedVariable Class - units support for MATLAB A new variable type allowing use of real-world units and dimensions with enforced unit consistency. Author: Sky Sartorius

@Emanuele: I expanded size and the other oversimplified methods to support their full functionality. Thanks for inspiring me to go through and clean up and improve everything.

The "content" method you describe is the same as the existing "u2num" method.

13 Feb 2014 DimensionedVariable Class - units support for MATLAB A new variable type allowing use of real-world units and dimensions with enforced unit consistency. Author: Sky Sartorius

In order to do what you describe, Thomas, u2num and unitsOf can't be normal methods of the class (at least not by themselves). I see three solutions to do what you want:

1) Make them static methods; add
isa(inVariable,'DimensionedVariable')
...
else
out = in;
end
This required writing "DimensionedVariable." before all function calls.
2) Move the unitsOf and u2num m files from the @DimensionedVariable folder to somewhere on your path (I suggest the same folder where units.m lives); add the same if/else as above.
3) Don't bother with "if isa(..." - just make a function on your path like
function [out] = u2num( varargin )
out = varargin{1};
end
MATLAB will use this for any input that isn't a DimensionedVariable.

I don't find any of the above solutions to be very elegant, which is why I haven't done any of them for the released submission. Perhaps someone here can suggest a more elegant solution.

P.S. I added the ability to switch base unit systems (e.g. use feet and lbs instead of meters and kg). Stay tuned for a new upload.

18 Apr 2013 addcopyright add copyright information to an m-file or group of m-files. Author: Mirko Hrovat

If I want to add/update copyright info for a file that's on the path but not in the current directory, a new version of the file (with copyright info) is created in the current directory. I changed line 180 to use uigetfile instead of uigetdir, which is more useful for me and helps with the aforementioned issue.

12 Apr 2013 DimensionedVariable Class - units support for MATLAB A new variable type allowing use of real-world units and dimensions with enforced unit consistency. Author: Sky Sartorius

I uploaded a new version that, among other improvements, especially in documentation, has an entirely new subsasgn file that should take care of the removing elements problem and the preallocating problem. When doing subscripted assignment, you have to be assigning using input/output with the same units. The only exception is that NaN and [] are now allowed (either normal or with units). For preallocation, use a dimensioned NaN array. If you don't know the dimensions you'll need, the new subsasgn will allow changing the units of an all-NaN array to match the assigned variable (with a warning).

01 Dec 2012 Vectorized Bisection Search Robust root-finding method that handles n-dim inputs and therefore has key advantages over FZERO. Author: Sky Sartorius

I just uploaded an entirely new function with almost all new code and documentation and a lot of added features. With so much new code, please let me know if you find a bug.

This is about as far as I'll take this function. I would love to see MathWorks or someone in the community develop a vectorized implementation of Brent's method, i.e. make FZERO vectorized to be able handle array problems. A vectorized FZERO (with a TolFun feature) would be superior to this in every way.

Comments and Ratings on Sky's Files View all
Updated File Comment by Comments Rating
25 Aug 2014 Vectorized Bisection Search Robust root-finding method that handles n-dim inputs and therefore has key advantages over FZERO. Author: Sky Sartorius Ohnewein, Philip

Works brilliantly in my case. Replaces a loop with ~1 million iterations, brings down execution time by several orders of magnitude.
Plus it is well-written and well-documented and a numerically robust method.

16 May 2014 DimensionedVariable Class - units support for MATLAB A new variable type allowing use of real-world units and dimensions with enforced unit consistency. Author: Sky Sartorius Sartorius, Sky

@Emanuele: I expanded size and the other oversimplified methods to support their full functionality. Thanks for inspiring me to go through and clean up and improve everything.

The "content" method you describe is the same as the existing "u2num" method.

15 May 2014 STDATMO: Standard Atmosphere Function Gas properties at altitudes from N-dim input. Non-standard atmospheres capable. Many units supported Author: Sky Sartorius dufour, jean

it looks great but do you know how you could include it in MATLAB function block?

13 May 2014 DimensionedVariable Class - units support for MATLAB A new variable type allowing use of real-world units and dimensions with enforced unit consistency. Author: Sky Sartorius Ruffaldi, Emanuele

Great tool. Two minor changes for improving interoperability with existing code:

function outSize = size(v1,v2)
outSize = size(v1.value);
if nargin == 2
outSize = outSize(v2);
end

function y = content(x)
y = x.value
end

03 May 2014 Vectorized Bisection Search Robust root-finding method that handles n-dim inputs and therefore has key advantages over FZERO. Author: Sky Sartorius Fabian

Excellent file. Much faster than using fzero in a long loop!

Contact us