I’m trying to compile a c++ mex function that I created according to the specifications given by mathworks here (Create a C++ MEX Source File). However, after following the steps of the answer in this thread to link Eclipse 4.4.2 and Matlab R2015a in a linux enviroment (old but the only one I’ve found about ..
I am trying to import a matrix generated in MATLAB into armadillo. For example, I have a matrix "A" which is 100×1 double. I used information from a previous question on stackoverflow to generate a binary file using MATLAB: % Generate LocalX.bin name = ‘LocalX.bin’; [F,err] = fopen(name,’w’); if F<0,error(err);end fwrite(F,LocalX, ‘int32’); fclose(F); and I ..
I have a Matlab mex file. This mex file is provided by other guys so I cannot access the code. Can anyone help me to read this file in C++ application (mainly required library & functions to read file) ? A pseudo code will be helpful to understand approach. Thanks in advance! I have very ..
today I asking for your help, becuase I have tried everything I could, but I am still not able to solve my issue. I am working on a C++ code that uses API from Siemens StarCCM+ and Matlab, and I am facing a weird issue. If I run the code that uses Matlab API on ..
this is a theoretical question. I am doing a project right now where I get Sensordata every 10ms and send them to Matlab via TCP over Wifi. Its working but its unstable.That means im senind 4 bytes at one time but sometimes it send 24 bytes or 40 bytes at one time and sometimes the ..
I’m trying to plot three curves in a same graphic using two independent y axes and one common x axis (two of the curves shared one y axis, the other have its own y axis, and the three of them share the same x axis). The code is saved in a .m script, and I ..
Is it possible to run system cmd from Matlab minimized? My example is as follows, system(‘php D:aaaMLrequestData.php &’); This command when run in Matlab runs cmd and then cmd runs the php script. But I need it to start minimized. Source: Windows..
I’m trying to build an audio plug-in in Matlab2021a and Xcode12.5.1 using MEX, but when I run: mex -setup C++ I get the error: "Warning: Xcode is installed, but its license has not been accepted. Run Xcode and accept its license agreement" despite having accepted the license agreement. Any thoughts on how to solve this? ..
I want to create a dll which keeps an instance of the MATLAB engine open for use by other scripts. That is, the goal is to not have to keep initialising and closing the MATLAB instance, which takes time. For some background, I have a working C++ program which initialises a MATLAB engine and contains ..
I have a matlab script running for 3 weeks. I set windows to update the longest possible time away, as it flagged during the code running. Now the code hasn’t finished and windows is due to update in two days. Is there anything I can do to stop windows updating while matlab is running? Source: ..