Rank: 932 based on 143 downloads (last 30 days) and 19 files submitted
photo

Matthew Simoneau

E-mail
Company/University
MathWorks
Lat/Long
42.3003044128418, -71.34988403320312

Personal Profile:

My name as a MATLAB pun, courtesy of Tim Davis:

save perrier psi(weekday(3))

Personal site: http://www.matthewsim.com/


 

Watch this Author's files

 

Files Posted by Matthew Simoneau View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 Jul 2013 Extract the TIFF Preview from an EPS File Extract the TIFF preview from an EPS file. Author: Matthew Simoneau eps, tiff 2 0
09 May 2011 Using XPath from MATLAB A simple example showing how to use XPath from MATLAB. Author: Matthew Simoneau xml, xpath 10 1
  • 5.0
5.0 | 1 rating
27 May 2010 Screenshot Fitting Data with A Sudden Discontinuity Find the displacement and supply it as a shift in a custom equation. Author: Matthew Simoneau matrix 15 0
21 Jan 2010 Unescape a JavaScript String Manually interprets a JavaScript string, which may contain escape characters. Author: Matthew Simoneau javascript, strings 7 2
04 Jan 2010 Screenshot Animation of "House of Cards" by Radiohead® An animation of 3-D scatter data. Author: Matthew Simoneau plotting, animation, 3d, data, house of cards, graphics 4 0
  • 5.0
5.0 | 1 rating
Comments and Ratings by Matthew Simoneau View all
Updated File Comments Rating
14 Dec 2010 Update twitter status Update your Twitter® status from MATLAB® Author: Navan Ruthramoorthy

Implementing OAuth in MATLAB. Very nice!

23 Sep 2009 ntimes Multiplies arrays of 2D matrices in an efficient manner. Author: Michael Stachowsky

The "(2)" in the filename makes it impossible to run.

27 Apr 2009 Publish to MediaWiki A stylesheet to make MATLAB publishing produce MediaWiki markup as an output. Author: Matthew Simoneau

joshua, is it the "<source>" that you're asking about? That's markup for the syntax highlighting extension. It's installed on Wikipedia and most other installations. http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi

us, I checked again and the file is xsl on the File Exchange. it's possible your browser or OS is renaming the file when you download it.

23 Apr 2009 Publish to MediaWiki A stylesheet to make MATLAB publishing produce MediaWiki markup as an output. Author: Matthew Simoneau

urs, I'm not sure where you mean. I think it should be mediawiki.xsl everywhere.

23 Jan 2009 Unescape a JavaScript String Manually interprets a JavaScript string, which may contain escape characters. Author: Matthew Simoneau

Yes, us, that is a real problem!

There's probably a clever way to avoid this hack, but it didn't come to mind.

Comments and Ratings on Matthew Simoneau's Files View all
Updated File Comment by Comments Rating
13 Feb 2014 Using XPath from MATLAB A simple example showing how to use XPath from MATLAB. Author: Matthew Simoneau Ferdinando

Hi Matthew,

I need to extract data (e.g. all the noduleID) from my xml file, having a structure like the following (but with more 'unblindedReadNodule' nodes):

<?xml version="1.0" encoding="UTF-8"?>
<LidcReadMessage uid="1.3.6.1.4.1.14519.5.2.1.6279.6001.1307390687803.0" xmlns="http://www.nih.gov" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nih.gov http://troll.rad.med.umich.edu/lidc/LidcReadMessage.xsd">
<ResponseHeader>
<Version>1.8.1</Version>
<MessageId>-421198203</MessageId>
<DateRequest>2007-11-01</DateRequest>
<TimeRequest>12:30:44</TimeRequest>
<RequestingSite>removed</RequestingSite>
<ServicingSite>removed</ServicingSite>
<TaskDescription>Second unblinded read</TaskDescription>
<CtImageFile>removed</CtImageFile>
<SeriesInstanceUid>1.3.6.1.4.1.14519.5.2.1.6279.6001.179049373636438705059720603192</SeriesInstanceUid>
<DateService>2008-08-18</DateService>
<TimeService>02:05:51</TimeService>
<ResponseDescription>1 - Reading complete</ResponseDescription>
<StudyInstanceUID>1.3.6.1.4.1.14519.5.2.1.6279.6001.298806137288633453246975630178</StudyInstanceUID></ResponseHeader>
<readingSession>
<annotationVersion>3.12</annotationVersion>
<servicingRadiologistID>540461523</servicingRadiologistID>
<unblindedReadNodule>
<noduleID>Nodule 001</noduleID>
<characteristics>
<subtlety>5</subtlety>
<internalStructure>1</internalStructure>
<calcification>6</calcification>
<sphericity>3</sphericity>
<margin>3</margin>
<lobulation>3</lobulation>
<spiculation>4</spiculation>
<texture>5</texture>
<malignancy>5</malignancy>
</characteristics>
<roi>
<imageZposition>-125.000000 </imageZposition>
<imageSOP_UID>1.3.6.1.4.1.14519.5.2.1.6279.6001.110383487652933113465768208719</imageSOP_UID>
<inclusion>TRUE</inclusion>
<edgeMap>
<xCoord>312</xCoord>
<yCoord>355</yCoord>
</edgeMap>
</roi>
</unblindedReadNodule>
</readingSession>
</LidcReadMessage>

I tried to use your function, with only two appropriate changes:
doc = xmlread(which('myFileName.xml'));
expression = xpath.compile('//noduleID');
but I got no display!

Could you help me?

Thank you for your attention.

Ferdinando

19 Mar 2013 Upload a Video to YouTube™ Using the Youtube™ data API, upload a video directly from MATLAB®. Author: Matthew Simoneau Lee White

I had major issues with this download. Tried multiple version of the gdata API and emailed the author. I agree with Nathan that the easiest way to do upload from matlab is using GoogleCL. Protip: to upload videos to youtube from matlab as 'unlisted' get the latest version of GoogleCL using SVN. Then you will need to enter the following command in matlab: DOS(python google.py youtube post "filename.avi" --category Tech --access=unlisted --Title "It works!"

13 Mar 2013 Upload a Video to YouTube™ Using the Youtube™ data API, upload a video directly from MATLAB®. Author: Matthew Simoneau Nathan Orloff

I get emailed about this a lot. This code is not so useful. You should install the google command line utility and then do it that way.

Yeah. It can be done. You need to install the google command line utility and all the associated api's. Then you have to enable your youtube account as a developer. Then you can do it.

This guys code is basically useless. I had to do it all myself. The easiest way to do it is through the command line. That way you dont have to modify all the .jar files on the path. Also, it is much faster and matlab is really prone to memory leaks.

Once you get all that stuff setup, which is by no means straightforward. Something like the following should work.

function req_url = im_uploadmovie(game_id,moviedir,game_str)
% im_uploadmovie
% im_uploadmovie automatically uploads a game movie to youtube.

% See also im_makemovie

% HISTORY:
% Version 1.0, 2011-10-21..
movie_file = [moviedir '\movie_game_id_' num2str(game_id) '.mp4'];
commandline_str = ['google youtube post ' ...
'--category Games '....
'--summary "' strrep(game_str,sprintf('\n'),' ') '"'...
' "' movie_file '"'];
[~, results_str] = system(commandline_str);
ind = strfind(results_str,'Video uploaded:');
raw_url = results_str(ind:end);

26 Feb 2012 Upload a Video to YouTube™ Using the Youtube™ data API, upload a video directly from MATLAB®. Author: Matthew Simoneau Nathan Orloff

The problem with this code is in the developerKey, clientid. I think these are expired so you need to register with google API to get your own. I modified the code to allow you to set the privacy settings, and also work for an arbitrary movie type instead just .avi. Send me an email if you want it.

24 Feb 2012 Upload a Video to YouTube™ Using the Youtube™ data API, upload a video directly from MATLAB®. Author: Matthew Simoneau Nathan Orloff

Sheesh. This is a long error message. I am sorry about this. I tried making a new account but I am having trouble with the username and password. I don't understand why it isn't logging in. Do you have ideas why this might be happening? I have checked the username and password several times to verify that they are correct.
Error using
com.google.gdata.client.youtube.YouTubeService/setUserCredentials
Java exception occurred:
com.google.gdata.util.AuthenticationException: Error connecting with login
URI
at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:489)
at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(GoogleAuthTokenFactory.java:346)
at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:362)
at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:317)
at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:301)

Caused by: java.io.IOException: The issuer can not be found in the trusted
CA list.
at ice.ssl.SSLSocket.processEvent(OEAB)
at ice.ssl.SSLSocket.certCallback(OEAB)
at ice.ssl.SSLSocket.append(OEAB)
at ice.ssl.SSLSocket.startHandshake(OEAB)
at ice.ssl.SSLSocket.IVSize(OEAB)
at ice.ssl.SSLSocket.getInputStream(OEAB)
at ice.net.ClientSocket.getInputStream(OEAB)
at ice.net.PersistentConnection.setSocket(OEAB)
at ice.net.ConnectionManager.getConnection(OEAB)
at ice.net.HttpURLConnection.connect(OEAB)
at ice.net.HttpURLConnection.getOutputStream(OEAB)
at com.google.gdata.client.GoogleAuthTokenFactory.makePostRequest(GoogleAuthTokenFactory.java:551)
at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:487)
... 4 more

Contact us