Rank: 191 based on 299 downloads (last 30 days) and 5 files submitted
photo

Rafael Oliveira

E-mail
Lat/Long
48.14112, 11.545601

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Rafael View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 May 2013 Screenshot KML Toolbox v2.6 Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more Author: Rafael Oliveira kml, google earth, contour, earth, plot, geography 221 28
  • 4.90909
4.9 | 12 ratings
17 Feb 2012 Screenshot Display progress, pause or stop a time-consuming loop Allows you to display a loop’s progress, pause (and also change related code) or stop it. Author: Rafael Oliveira flow control, stop, gui, pause, progressbar, progress 6 0
07 Feb 2012 Screenshot Multiple Monitors Screen Capture Captures the screen on every monitor you have. Author: Rafael Oliveira screen capture, screenshot, multiple monitors, printscreen 4 0
29 Nov 2011 Screenshot Let me work, figure! Fig replaces the built-in figure without stealing your focus. Setting properties is also available. Author: Rafael Oliveira gui, plot, figure, silent, focus 3 0
21 Feb 2011 Screenshot XFOIL - MATLAB interface Class interface between XFOIL and MATLAB, with the ability of running many instances in parallel. Author: Rafael Oliveira aerodynamics, airfoil, xfoil, aerospace, aeronautics, aircraft 65 14
  • 5.0
5.0 | 4 ratings
Comments and Ratings by Rafael View all
Updated File Comments Rating
22 May 2013 KML Toolbox v2.6 Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more Author: Rafael Oliveira

@Ryan: thanks for reporting the error, you can fix it by changing that line to:

if iscell(arg.iconColor) && nc==nlat

I'll submit a fixed version of the toolbox.

@Alfredo: I've changed the save function, now it should be possible to save to other folders as well - thanks for the tip. And to avoid those lines, just make sure you end every plot command with a ;

30 Nov 2012 kml2kmz.m Converts .kml file types into self-contained .kmz filetypes. Author: Ryan Bell

Hi, really nice code, would you mind if I include your code into the my kml toolbox? (FE: http://www.mathworks.com/matlabcentral/fileexchange/34694-kml-toolbox-v2-3)
Regards,

Rafael

05 Nov 2012 KML Toolbox v2.6 Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more Author: Rafael Oliveira

Sorry Tomas, but the toolbox needs a MATLAB version that supports classes, which are definitely not available at R2007b...

11 Oct 2012 XFOIL - MATLAB interface Class interface between XFOIL and MATLAB, with the ability of running many instances in parallel. Author: Rafael Oliveira

Hi Matt,
To hide the xfoil window, just set (assuming x = XFOIL;)
x.Visible = false;
Any other doubts, drop me an email!

29 Aug 2012 KML Toolbox v2.6 Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more Author: Rafael Oliveira

and for those interested in the animation feature, here is a little example of using it:

k = kml('testAnimation');
k.useRadians;
N = numel(longitude);
yaw = yaw - pi; %This is to correct the mis-orientation in the A320 model, you can ignore this for other models - or fix the model file
modelA320 = k.model(longitude(1),latitude(1),altitude(1),yaw(1),gamma(1),roll(1),'model','A320.dae','scale',10);
anim = k.newAnimation('Flight');

for i = 2:N
dT = time(i) - time(i-1);
anim.updateLocation(modelA320,dT,longitude(i),latitude(i),altitude(i));
anim.updateOrientation(modelA320,dT,yaw(i)-pi,gamma(i),roll(i));

anim.flyToLookAt(dT, longitude(i), latitude(i),1e4)
end

anim.flyToLookAt(10, mean(longitude),mean(latitude),1e5);

k.run;

Comments and Ratings on Rafael's Files View all
Updated File Comment by Comments Rating
28 Jun 2013 KML Toolbox v2.6 Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more Author: Rafael Oliveira Gueler, Richard

I found a bug with the overlay function. If I try to add an overlay image with a path in the filename, it embeds the state path in the kml file, thus when I load the kmz file into Google Earth, it goes looking for the file at the stated path. It does not use the file embedded with the kmz file.

For example, if I do the following,

k.overlay(west,east,south,north,'file','C:\temp\myImage.png');

Google Earth will grab the image "C:\temp\myImage.png", not the one embedded with the kmz file. I suggest you remove the path from the filename that is used in the kml file.

Other than that, it is a great toolbox.

06 Jun 2013 KML Toolbox v2.6 Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more Author: Rafael Oliveira Lechner, Martin

Hi Rafael,

in the file
function target = plot(this,long,lat,varargin)

I found an issue in the chech of the lat and long input value (line 14 and 15).
The function handle includes directly the check for the input value &&~isempty(lat). This must be &&~isempty(a).

This lines should be:
p.addRequired('lat', @(a)isnumeric(a) && isvector(a) &&~isempty(a));
p.addRequired('long',@(a)isnumeric(a) && isvector(a) &&~isempty(a) && numel(a)==nlat);

22 May 2013 KML Toolbox v2.6 Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more Author: Rafael Oliveira Oliveira, Rafael

@Ryan: thanks for reporting the error, you can fix it by changing that line to:

if iscell(arg.iconColor) && nc==nlat

I'll submit a fixed version of the toolbox.

@Alfredo: I've changed the save function, now it should be possible to save to other folders as well - thanks for the tip. And to avoid those lines, just make sure you end every plot command with a ;

21 May 2013 KML Toolbox v2.6 Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more Author: Rafael Oliveira Ryan

Hi Rafael,

I really like this tool box, I have been using it quite a bit.

I wanted to report a possible error:

When using k.scatter3(lon,lat,z, ...
'iconColor','FFFF0000','iconScale',.2);

I get an error when plotting exactly 8 points
Cell contents reference from a non-cell array object.

Error in kml/scatter3 (line 131)
iconstyle.appendChild(this.textNode('color',arg.iconColor{i}));

-It seems to happen here in the scatter3 function because nc==nlat returns true, and it should probably be false.
if nc==nlat
iconstyle.appendChild(this.textNode('color',arg.iconColor{i}));
else
iconstyle.appendChild(this.textNode('color',arg.iconColor));
end

Thanks again for the toolbox

21 May 2013 KML Toolbox v2.6 Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more Author: Rafael Oliveira Ryan

Top Tags Applied by Rafael
gui, plot, advanced plotting, aerodynamics, aeronautics
Files Tagged by Rafael View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 May 2013 Screenshot KML Toolbox v2.6 Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more Author: Rafael Oliveira kml, google earth, contour, earth, plot, geography 221 28
  • 4.90909
4.9 | 12 ratings
17 Feb 2012 Screenshot Display progress, pause or stop a time-consuming loop Allows you to display a loop’s progress, pause (and also change related code) or stop it. Author: Rafael Oliveira flow control, stop, gui, pause, progressbar, progress 6 0
07 Feb 2012 Screenshot Multiple Monitors Screen Capture Captures the screen on every monitor you have. Author: Rafael Oliveira screen capture, screenshot, multiple monitors, printscreen 4 0
29 Nov 2011 Screenshot Let me work, figure! Fig replaces the built-in figure without stealing your focus. Setting properties is also available. Author: Rafael Oliveira gui, plot, figure, silent, focus 3 0
21 Feb 2011 Screenshot XFOIL - MATLAB interface Class interface between XFOIL and MATLAB, with the ability of running many instances in parallel. Author: Rafael Oliveira aerodynamics, airfoil, xfoil, aerospace, aeronautics, aircraft 65 14
  • 5.0
5.0 | 4 ratings

Contact us