How to smooth in Octave? - matlab

I'm trying to get a piece of MATLAB code to run in Octave, and I've come upon the line:
xsm = smooth(x,0.03,'loess')
which doesn't seem to have an octave equivalent. x is just an array of a few thousand real numbers.
Is there any Octave code out there which will do this for me, and if not, where do I find the algorithm so that I can write my own? And if I do that, how do I contribute it to Octave?

Looks like someone has already implemented it: smooth.m or else maybe data smoothing package on Octave-Forge

Here's some loess code in Excel Basic, which might be a start:
http://peltiertech.com/WordPress/loess-smoothing-in-excel/

Related

Fitnet function analogue in Octave

Octave is considered as open source implementation of MATLAB.
In MATLAB there is a function fitnet.
Does anybody know a corresponding function in Octave?
P.S.: I have also installed in my octave edition an Octave´s neural network package.
Or, maybe, does somebody know about some other package, which has this function?
you probably want something like NetLab. The authors state that most of it works in Octave. There is a page with examples that comes from a book about the software. From the Intro on the site it looks like netopt is similar to fitnet in functionality, if not necessarily in syntax.

Running Mathematica from MatLab

I need to run some mathematica commands inside matlab codes. Looking around I found there used to be two alternatives for this:
-SMATLink (http://www.mathworks.com/matlabcentral/fileexchange/20573-smatlink-let-matlab-dance-with-mathematica)
-Mathemtica Symbolic Toolbox for MatLab (http://www.mathworks.com/matlabcentral/fileexchange/6044-mathematica-symbolic-toolbox-for-matlab-version-2-0)
Both are old however and won't run on newer versions of MatLab. Does anybody know an alternative? MatLink only seems to interact Mathematica with MatLab by running commands in Mathematica, so it does suit not my needs...
Thanks in advance.

In ExtractHogFeatures Matlab a line that I can't understand

In matlab 2014b in vision toolbox, in extractHOGFeatures.m there's a line that says
hog = visionExtractHOGFeatures(gMag, gDir, gaussianWeights, params, weights);
I've looked for visionExtractHOGFeatures everywhere in matlab it seems to be a function, but I can't find anything about it. extractHOGFeatures.m uses it, it seems to be important for the algorithm and I want to fully understand the code. What can it be? How can I find what it is?
It is an internal function. Unfortunately, you cannot see the source, because it is compiled code.

Gaussian hypergeometric function 2F1

I would like to know if there is any available Gaussian hypergeometric function (2F1 function) code for Matlab.
I perfectly know that in the newest Matlab releases there is the hypergeom function, but it works really slow.
Therefore I was wondering about the existance of any mex function or whatever similar code performing what hypergeom does.
I thank you all in advance for support.
Best regards,
Francesco
The GNU Scientific Library implements hypergeometric functions including 2F1. You shouldn't have too much trouble wrapping that inside a mex-file.
I expect you'll find other sources knocking around on the Internet too.
Do report back and let us know if it does work faster than the intrinsic function.
After googleing a bit in the Internet, I came up with this tool provided within the Mathworks File Exchange:
http://www.mathworks.com/matlabcentral/fileexchange/35008-generation-of-random-variates/content/pfq.m
It consists of 1900 distributions, and among them the Gaussian hypergeometric function 2F1.
Furthermore, it has better performances than the standard hypergeom function.

MATLAB Mex files

Is there a way to get the mex file for a built-in MATLAB m- file? If yes, how? If no, does that mean I have to write the C code myself (oh nooo!!!)
The Matlab built-in functions are closed-source. Thus, you won't be able to get the code for them. It is possible to call Matlab functions from C code, though, if that solves your problem.
Depending on the function you want, you can find some of it elsewhere. For example, linear algebra operations are in LAPACK, and you may be able to get something from the source of OCTAVE.