I have a Windows Matlab R2020a and was able to generate C source code for my Matlab function. However, I need to run a MEX file (for speed) on a Linux ...
I have a Windows Matlab R2020a and was able to generate C source code for my Matlab function. However, I need to run a MEX file (for speed) on a Linux ...
I am putting together a minimal example leveraging parallelism features in C++17/20 within Matlab MEX functions. I am able to compile and run the mex ...
I want to do some simulations that need C++-Code in Matlab. This works like a charm, but as soon as I put in some additional #include's in the C++/MEX ...
I have created dll of matlab function makeSbus using matlab compiler sdk to use in C. The function takes 1 integer and 2 double matrix as input and gi ...
I am running multi-threaded C++ code on different machines right now. I am using it within a Matlab mex function, so the overall program is run from M ...
For Matlab I create a mex wrapper. The compilation is all fine, I use either MSVC or MinGW as a compiler, and cmake for finding the Matlab installatio ...
I am trying to integrate to an existing Fortran code mycode.F a mwPointer. My mycode.F compiled correctly before any change I tried to make. Here's an ...
Using the MATLAB Engine API for Fortran, I am trying to call a simple MATLABfunction from a Fortran code. I followed the fengdemo example found here. ...
I have a mex(MATLAB version of C++) function that I want to convert to C++. It's very similar except for the main() function. But one of the sub-funct ...
I have a .mex code that properly works on Matlab 2012b (32bit). However, I would like to make it work also on Matlab 2019b (64bit). When I run it in M ...
I'm trying to generate a mex function usigin external libraries. I'm using Ubuntu 18 and Matlab R2021a. In particular I want to compile my file.cpp t ...
I have compiled a mex file using MATLAB. I am having trouble since every time I try to run the code, MATLAB crushes. I have tried using feval() funct ...
In a project using Matlab's C++ MEX API, I have to compute the value exp(j * 2pi * x) for over 100,000 values of x where x is always a positive double ...
In the following cuda code taken from book "Accelerating MATLAB with GPU computing: a primer with examples", I think should actually be Am I rig ...
I'd like to profile a mex function I've written in the matlab (2021a) editor. The best I can do right now is to using matlab's tic, toc functions to m ...
I am building a matlab MEX function using the matlab c++ data api. My mex function accepts a struct with some fields of varying size, type and name as ...
I need to write a large array of data to disk as fast as possible. From MATLAB I can do that with fwrite: function writeBinaryFileMatlab(data) fi ...
I need create a Matlab mex function that will take an input matrix and return the matrix diagonal. Input: Expected output: My problem is that s ...
I need to create a c++ mex function that input a matrix and return it diagonal with each array in its own block. Ex. Can anyone help I am extremely ...
I have a C mex routine that is iterating over subfields of a structure. Sometimes calling mxGetFieldByNumber() returns NULL when mxGetFieldNameByNumbe ...