Clear Filters
Clear Filters

ERT control Row major matrix order

2 views (last 30 days)
When performing Matlab to C code generation (ERT) is it possible to control the matrix order convention ? (row major or column major) ?

Accepted Answer

Abhi Sundararaman
Abhi Sundararaman on 2 Aug 2017
Unfortunately, due to the way both languages are implemented, changing the matrix order convention is not possible in the generated code.
  1 Comment
Abhi Sundararaman
Abhi Sundararaman on 15 May 2018
A quick update: As of R2018a, MATLAB Coder now supports changing the array layout to row-major.
Refer to the following documentation link for more information. https://www.mathworks.com/help/coder/ug/generate-code-that-uses-row-major-data.html

Sign in to comment.

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!