MATLAB's makecform in Octave - matlab

I use MATLAB's makecform in a script. However, the script takes a while to run, so I want to run it on a server. On this server, I have Octave instead of MATLAB.
Octave cannot find the function makecform.
I Googled the problem and found that this is not implemented in Octave, but that was from a mailing list in 2013. Is there (now) an alternative function for makecform in Octave?

I cannot say about the alternatives but I can confirm that the function is not yet implemented.
the makecform function belongs to the image package from Octave Forge.
makecform is present in the missing functions list of the package. You can see the evidence for the same in this link.
If you have some idea about how to implement the function, feel free to contribute.

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.

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.

How do I use built-in MATLAB functions?

MATLAB has lots of built-in functions that I can call, such as "sin" and "norm." However, some of MATLAB's built-in functions are part of different libraries that I cannot access directly. For example, the function "ssim" is part of MATLAB's image processing toolbox, so I cannot simply call "ssim" in my code and have it work.
How do I call built-in MATLAB functions that are in different libraries? Do I need to import the libraries somehow? If so, how do I do that? How do I do this for ssim specifically?
Thanks so much!
Type ver into the command window to see which toolboxes belong to the license you bought.
Any function of these installed toolboxes you can call normally, like the mentioned sin.
Sometimes, if you're lucky, you can find equivalent functions of otherwise expensive toolboxes at MATLAB File Exchange.

Workaround for Maple in MATLAB

I am trying to get the MATLAB toolbox SOSTOOLS to work inside a MATLAB R2010b (7.11.0.584) but get the following error:
??? Error using ==> maple at 54 The MAPLE command is not available.
Googling it I found out that MATLAB stopped using Maple at some stage and switched to MuPad.
Short of switching to an older version of MATLAB, is there a known workaround for this situation?
A solution in the form of installing Maple as the symbolic toolbox engine is not possible with your version of Matlab.
This outlines an alternative possible solution, I did not find a concrete workaround that will spare you work. I recommend you contact the authors, or check for octave versions with the same functionality.
The change to MuPad is a problem that's been posted numerous times, and there is a useful discussion of differences between Maple and MuPad here:
http://www.walkingrandomly.com/?p=178
For some commands it looks like a simple translator might work. Most of the implementation would apparently be in parsing the output from MuPad and turning it into what Maple would generate. The input to MuPad and Maple is apparently equal most of the time, but read the doc above.
To write a translator, you redirect calls to maple by placing in your path the following function maple that calls mupad:
function output=maple(input);
%prepare input here (if necessary) ...
output=mupad(input);
% parse the output (if necessary) ...
More likely than not, a naive call to this re-director will not solve the problem without some input/output parsing.

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.