Rank: 450 based on 193 downloads (last 30 days) and 10 files submitted
photo

Ioannis Filippidis

E-mail
Company/University
California Institute of Technology

Personal Profile:

http://www.caltech.edu/~ifilippi

Professional Interests:
Multi-Agent Control, Motion Planning, Formal Methods

 

Watch this Author's files

 

Files Posted by Ioannis View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
27 Jul 2012 Screenshot Export figure to 3D interactive PDF Export figure as a U3D file or directly to 3D interactive graphics within a PDF. Author: Ioannis Filippidis 3d, u3d, graphics, export, save, plot 84 9
  • 4.25
4.2 | 5 ratings
10 May 2012 Take & Restore hold Hold axes temporarily, optionally respecting the previous hold state. Author: Ioannis Filippidis hold, hold on, hold off, axes, axis, plot 2 0
10 May 2012 Vectorized hold Vectorized version of hold function. Author: Ioannis Filippidis hold, vectorization, plot, axes, figure, matrix 0 0
03 May 2012 Screenshot OpenStreetMap Functions Load map, extract connectivity, plot road network & find shortest paths from OpenStreetMap XML file. Author: Ioannis Filippidis data import, automotive, transportation, mapping, openstreetmap, modeling 80 13
  • 5.0
5.0 | 4 ratings
19 Apr 2012 Screenshot Normalize N-D Vectors in Single Matrix or N Component Matrices Normalizes N-D vectors provided either in one matrix, or as multiple component matrices. Author: Ioannis Filippidis normalize, matrices, vector, unit vector, norm, vectorization 6 0
Comments and Ratings by Ioannis View all
Updated File Comments Rating
24 Mar 2013 Cassini Ovals Plot Cassini Ovals in Parametric Form Author: Tolga Birdal

Thank you for this code.

Please note that "close all" is not expected by a user from within a function. Plotting in a specific figure/axes object can be accomplished instead by explicitly opening one and passing the handle to "plot":
fig = figure;
ax = axes('Parent', fig);
plot(ax, ...)

Also "hold on" is interfering with the current settings by the user, if this function is called to add a curve to an existing figure. It would be better to first get the current hold state (if an axes object handle is passed as argument), then change it to "on" in order to add the curve and finally restore it to its original state:
http://www.mathworks.com/matlabcentral/fileexchange/36641-take-restore-hold

The function would benefit if it had arguments, so that the user can plot whichever Cassini curve they prefer.
If arguments are included, then the help text can be more explicit about how the function is used.
Referring to a link for the help text is not the usual practice.

Note also that the provided link is broken.

As a demonstration alternative, the function could plot several curves as it does now, if no arguments are provided, otherwise plot the curve prescribed by the arguments.

18 Feb 2013 exporttozip This is an update to exportToZip by Malcom Wood. It uses absolute paths OR relative paths. Author: Mark Morehead

Nice function, thanks!

It appears that:

if nargin < 2
abspath = 0;
end

is missing, so the 1-argument call returns an error.

15 Feb 2013 OpenStreetMap Functions Load map, extract connectivity, plot road network & find shortest paths from OpenStreetMap XML file. Author: Ioannis Filippidis

Some recent feedback I received suggests that the xml loading error might be caused by a name conflict between the function xml2struct included with the openstreetmap functions and a function with the same name in the MATLAB Bioinformatics toolbox.

My version of the bioinformatics toolbox does not have such a function, however it does have some functions for xml handling, so probably there existed xml2struct function in previous versions.

The Bioinformatics toolbox function (when it exists) can shadow the one included with this software package, depending on their relative placement in the MATLAB path.

Please check if this is the case for you by typing:
which xml2struct
This issue might be fixed in some future version by just renaming xml2struct, although in general it is preferable to maintain original names for files from the file exchange to keep better track of code and avoid duplicates.

23 Jan 2013 Export figure to 3D interactive PDF Export figure as a U3D file or directly to 3D interactive graphics within a PDF. Author: Ioannis Filippidis

Hi dan,

The issue is probably that the missing function is not in your path. You can add all the directories of the package to your path by using the :pathtool" command. Please try to see if its working with other plots (which have surfaces).

Apart from this, this software does not yet support scattergroups. I tried the scatter3 help example and although I got no errors, the geometry exported to the u3d file was essentially empty.

The reason is that some checks are performed. If you successfully run the script for a scatter3 plot, it will report that it did not find any surfaces, lines, patches, quivergroups or contourgroups.
It turns out that scatter3 produces hggroups and the quivergroup and contourgroup export functions look for hggroups. However, they then filter them to see if they are quivers or contours. Otherwise nothing is exported.

In the future there are plans to extend the supported plot types. For the moment all these tests aim to avoid cryptic errors caused by unsupported (or untested) plots. Probably the existing functionality does support scatter3 (i.e., they are only points, so the interface to the output functions will be relatively simple, compared to e.g. quiver output, which has to care about many details). But the wrapper for scatter3 is not yet part of the code.

23 Jan 2013 OpenStreetMap Functions Load map, extract connectivity, plot road network & find shortest paths from OpenStreetMap XML file. Author: Ioannis Filippidis

Hi Fabio,

Are you sure that xml2struct is in your path? It appears that the file is not loaded correctly, maybe you could check to see the fields of the structure returned, containing the loaded xml.

A minimal example reproducing the issue would help resolve it.

Best,
Ioannis

Comments and Ratings on Ioannis' Files View all
Updated File Comment by Comments Rating
15 Feb 2013 OpenStreetMap Functions Load map, extract connectivity, plot road network & find shortest paths from OpenStreetMap XML file. Author: Ioannis Filippidis Filippidis, Ioannis

Some recent feedback I received suggests that the xml loading error might be caused by a name conflict between the function xml2struct included with the openstreetmap functions and a function with the same name in the MATLAB Bioinformatics toolbox.

My version of the bioinformatics toolbox does not have such a function, however it does have some functions for xml handling, so probably there existed xml2struct function in previous versions.

The Bioinformatics toolbox function (when it exists) can shadow the one included with this software package, depending on their relative placement in the MATLAB path.

Please check if this is the case for you by typing:
which xml2struct
This issue might be fixed in some future version by just renaming xml2struct, although in general it is preferable to maintain original names for files from the file exchange to keep better track of code and avoid duplicates.

23 Jan 2013 Export figure to 3D interactive PDF Export figure as a U3D file or directly to 3D interactive graphics within a PDF. Author: Ioannis Filippidis Filippidis, Ioannis

Hi dan,

The issue is probably that the missing function is not in your path. You can add all the directories of the package to your path by using the :pathtool" command. Please try to see if its working with other plots (which have surfaces).

Apart from this, this software does not yet support scattergroups. I tried the scatter3 help example and although I got no errors, the geometry exported to the u3d file was essentially empty.

The reason is that some checks are performed. If you successfully run the script for a scatter3 plot, it will report that it did not find any surfaces, lines, patches, quivergroups or contourgroups.
It turns out that scatter3 produces hggroups and the quivergroup and contourgroup export functions look for hggroups. However, they then filter them to see if they are quivers or contours. Otherwise nothing is exported.

In the future there are plans to extend the supported plot types. For the moment all these tests aim to avoid cryptic errors caused by unsupported (or untested) plots. Probably the existing functionality does support scatter3 (i.e., they are only points, so the interface to the output functions will be relatively simple, compared to e.g. quiver output, which has to care about many details). But the wrapper for scatter3 is not yet part of the code.

23 Jan 2013 OpenStreetMap Functions Load map, extract connectivity, plot road network & find shortest paths from OpenStreetMap XML file. Author: Ioannis Filippidis Filippidis, Ioannis

Hi Fabio,

Are you sure that xml2struct is in your path? It appears that the file is not loaded correctly, maybe you could check to see the fields of the structure returned, containing the loaded xml.

A minimal example reproducing the issue would help resolve it.

Best,
Ioannis

18 Jan 2013 Export figure to 3D interactive PDF Export figure as a U3D file or directly to 3D interactive graphics within a PDF. Author: Ioannis Filippidis dan

Hi Ioannis,
the pdf output of your manual looks really nice.
Unfortunately, it the script always gives me the following error message:
"Undefined function 'u3d_pre_surface' for
input arguments of type 'double'."
I am using scatter3 to generate the matlab figure. Does the script support this?

Thank you for your nice work!
dan

20 Dec 2012 Export figure to 3D interactive PDF Export figure as a U3D file or directly to 3D interactive graphics within a PDF. Author: Ioannis Filippidis Filippidis, Ioannis

Please note that if one is willing to employ another 4 to 5 programs, one of which is a proprietary plug-in costing $99, all of which should be manually handled using the mouse and keyboard, with the obvious issue of having to deal with all the possible incompatibilities and other bugs that may arise as these update and change, then the purpose of writing a compact and clean code for doing the same in code or with one short command at the MATLAB command prompt, with fully open source code (MATLAB excluded) which is free and transparent, is totally defeated.

Top Tags Applied by Ioannis
plot, mathematics, figure, matrix, vectorization
Files Tagged by Ioannis View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
27 Jul 2012 Screenshot Export figure to 3D interactive PDF Export figure as a U3D file or directly to 3D interactive graphics within a PDF. Author: Ioannis Filippidis 3d, u3d, graphics, export, save, plot 84 9
  • 4.25
4.2 | 5 ratings
10 May 2012 Take & Restore hold Hold axes temporarily, optionally respecting the previous hold state. Author: Ioannis Filippidis hold, hold on, hold off, axes, axis, plot 2 0
10 May 2012 Vectorized hold Vectorized version of hold function. Author: Ioannis Filippidis hold, vectorization, plot, axes, figure, matrix 0 0
03 May 2012 Screenshot OpenStreetMap Functions Load map, extract connectivity, plot road network & find shortest paths from OpenStreetMap XML file. Author: Ioannis Filippidis data import, automotive, transportation, mapping, openstreetmap, modeling 80 13
  • 5.0
5.0 | 4 ratings
19 Apr 2012 Screenshot Normalize N-D Vectors in Single Matrix or N Component Matrices Normalizes N-D vectors provided either in one matrix, or as multiple component matrices. Author: Ioannis Filippidis normalize, matrices, vector, unit vector, norm, vectorization 6 0

Contact us