You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Matlab interface to OmniTRANS. You can read and write tables, execute SQL queries and read and write matrices. The usage is simple and straightforward using m-files.
The following example returns all names starting with an H:
OtStart();
hquery = OtQueryNew();
OtQuerySetSQL(hquery, 'SELECT name AS Hnames FROM "name.DB" AS nametable WHERE name LIKE "H%"');
OtQueryOpen(hquery);
disp(OtQueryFields(hquery));
OtQueryFirst(hquery);
while ~OtQueryEof(hquery)
disp(OtQueryGetAll(hquery));
OtQueryNext(hquery);
end
OtQueryClose(hquery);
OtQueryFree(hquery);
OtStop();
The next example opens two matrices and adds them together
OtStart();
hmcube = OtMatrixCubeNew(['d:\myproject\myvariant'], '2008');
pmtu = OtPmtu(1,2,4,41);
mymatrixA = OtMatrixCubeGet(hmcube, pmtu);
pmtu = OtPmtu(12,4,4,2);
mymatrixB = OtMatrixCubeGet(hmcube, pmtu);
mymatrixC = mymatrixA + mymatrixB;
OtMatrixCubeFree(hmcube);
OtStop();
Cite As
Erik de Romph (2026). Matlab link to OmniTRANS 5.1 (https://www.mathworks.com/matlabcentral/fileexchange/26497-matlab-link-to-omnitrans-5-1), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: OtMatlab
General Information
- Version 1.1.0.0 (159 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
