Rank: 5409 based on 22 downloads (last 30 days) and 1 file submitted
Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Erik
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 Nov 2009 getframe_nosteal_focus Does what getframe does, except it does not put the plotting window in focus. Author: Erik getframe print 22 3
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Erik
Updated File Comments Rating
18 May 2011 Easy 'n fast smoothing for 1-D to N-D data SMOOTHN allows automatized and robust smoothing in arbitrary dimension w/wo missing values Author: Damien Garcia

Really nice method!

I does seem to me though that there is a bug when using this in combination with your pppiv-function.

In the function RobustWeights, there is a line:
MAD = median(abs(r(I)-median(r(I))));

However, the values of r are complex when using it together with pppiv. That causes the median function to sort the values by the real component and then take the middle value. I think you probably want to add
r = abs(r);
before taking the median to sort the residuals by magnitude instead. Is that correct?

Comments and Ratings on Erik's Files View all
Updated File Comment by Comments Rating
29 Mar 2013 getframe_nosteal_focus Does what getframe does, except it does not put the plotting window in focus. Author: Erik vincent

Realy great when publishing an script with video creation in it.

Thanks

27 Jul 2010 getframe_nosteal_focus Does what getframe does, except it does not put the plotting window in focus. Author: Erik Svedin, Bryant

sorry. Forget about my last comment. The reason it needed to be rotated is because I had this line of code.

set(figure1, 'PaperOrientation', 'landscape','PaperPositionMode','auto');

The paper orientation made it so I needed that rotation.

Thanks for the great submission.

22 Jul 2010 getframe_nosteal_focus Does what getframe does, except it does not put the plotting window in focus. Author: Erik Svedin, Bryant

This works great. Thank you.

One thing about this though. Using imread to read in the image rotates it left 90 degrees. I would suggest making one change to your script by adding imrotate like this

frame.cdata = imrotate(imread(tempfilename),-90);

This will rotate it back to the original orientation.

Thanks again.

Contact us