Tag Archives: M script

Hitting walls with ‘buggy’ errors of this Matlab Coder toolbox generating from M script to C++

Hitting walls with ‘buggy’ errors of this Matlab Coder toolbox generating from M script to C++

I can honestly say this Code Generating process is kind of frustrating with these strange bugs. You always get these wierd errors like:

>> coder -build xxx.prj ??? Size mismatch (size [:? x 1] ~= size [1 x :?]). Mismatched varying and fixed sizes indicate a probable run-time error. If this diagnostic is incorrect, use indexing to explicitly make the varying size fixed.

It makes me wonder if I will keep hitting walls like this as you can spend deays trying to figure out ways to get around this. I can also say this does not work as you would expect.

NOTE: I am looking into using C++ directly without this potential code generation process. It may be faster in an odd and unoriginal way. YOu could say I would use these Matlab M source files as the roadmap. Believe me, I am very disappointed in this whole process but what can you do?

Lots of good examples in C# but very little in C++.

More Updates: Now I am investigating Simulink options for Moving Average etc.

Follow me in FREE in my newsletter as I get closer to this HFT system 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

For HFT: Just like Matlab or Coder toolbox,, embedding Octave M script code C++ is ugly, stick with R, RCpp, RInside

For HFT: Just like Matlab or Coder toolbox,, embedding Octave M script code  C++ is ugly, stick with R, RCpp, RInside

I tried investigating this as a hopeful extra bonus. This can be done but be aware that it is ugly as if you did it with Matlab. With the extra expense of Matlab core, the .NET or JABuilder toolboxes, it would be a real pain and expensive to do. The added costs of $6k for the Matlab Coder might not be worth it!! As GCC or G++ with R is all free! Yipeee! But too bad about Octave as it just does not have athe advancement of a community like R. It would have been nice to spend time on this but not worth it at this point.

http://octave.sourceforge.net/doxygen/html/

Learn more what I do with this potential HFT platform by joining my free newsletter. 

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

These links demonstrate how to call multi parameter Matlab M script functions from C# or any Microsoft .NET language

 

These links demonstrate how to call multi parameter Matlab M script functions from C# or any Microsoft .NET language. These seem to be the most flexible despite Mathwork’s example code can get complicated.

Using Matlab functions in C# (2009 a)

Using Matlab functions in C# (2009b)

It is a good base to work off of.

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!