Beantwortet
How to write/edit prototype file when .h and .dll files dont work correctly?
I would start by trying to fix the header file to get a better prototype file to start with. This header appears to be only com...

fast 8 Jahre vor | 0

Beantwortet
linking a dll with loadlibrary "specified module could not be found" error
That error is frequently the result of some other dll being missing from your system or otherwise failing to load. I recommend ...

fast 8 Jahre vor | 0

Beantwortet
In mex file, I can't overwrite scalar value through the pointer in matlab2016a, although I can overwrite the scalar value through the pointer in matlab2013a and I can also overwrite the array through the pointer in matlab2016a.
Scalar values no longer (as of R2015b) create mxarrays by default. They are created as needed when a mex or buit-in function is...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
Getting data from asychronous mex function.
I believe that calling back into MATLAB from a windows hook with mexCallMatlab or mexEvalString works fine, or has in past versi...

fast 8 Jahre vor | 0

Beantwortet
How is execution time (cpu time) calculated for multi-core cpu?
The matlab profiler lets you select the timing source if you run it manually using the -timer option: profile on -timer cpu...

fast 8 Jahre vor | 0

Beantwortet
What do you think of "Did you mean clearvars -except".....?
The suggestion is interesting but not possible to implement. "did you mean?" is implemented with a try-catch block but your cl...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
How to declare a pointer to a pointer array?
MATLAB can't create and manage an array of pointers to data buffers for external use. My suggestion is to create a mex file or ...

fast 8 Jahre vor | 1

Beantwortet
how to save number of function calls from profile
Use the results returned by profile('info'). profile on; magic(3) ; profile off; ifo=profile('info'); ifo.FunctionTab...

etwa 8 Jahre vor | 0

Beantwortet
Why does running a MEX file on MacOS crash MATLAB when mexerrmsgtxt is used?
What FORTRAN compiler and version are you using? The only supported compiler I see is Intel FORTRAN Composer XE (2013) <http://...

etwa 8 Jahre vor | 0

Beantwortet
calllib() and parallelization using OpenMP
I can't tell you why this is not working but can give you someplace to start. Attempting to use OpenMP in a function called by...

etwa 8 Jahre vor | 0

Beantwortet
Where are the compiled THUNK files located and how to re-use them?
If you specify the mfilename option to loadlibrary then the thunk file will be created in the same directory as the prototype fi...

etwa 8 Jahre vor | 1

Beantwortet
How to import a DLL/shared library into MATLAB?
My first thought is that the absence of a header file probably means that this dll should not be used with loadlibrary. If the ...

etwa 8 Jahre vor | 0

Beantwortet
Error while loading library
Something quite odd is going on, This error is caused by a timeout waiting for the prototype file to be visible to MATLAB after...

etwa 8 Jahre vor | 0

Beantwortet
How does one have arrays in a Matlab share the same memory
A libpointer can be (mis)used to do this but I am not sure it will help in the long run due to the overall performance of and co...

etwa 8 Jahre vor | 1

Beantwortet
Returning error number as string when only Int32Ptr is accepted in Matlab
Remember that MATLAB creates everything(*) on the left of an equals sign and don't bother initializing xMotor and errorNumber th...

etwa 8 Jahre vor | 0

Beantwortet
Efficiently Swapping Columns in a Matrix
Does your data need to be in a matrix? Swaping two elements of a cell array will be much faster for large element sizes and wil...

etwa 8 Jahre vor | 1

Beantwortet
End line taking huge amount of time in profiler
Without seeing the full function all I can do is guess. Typically time shows up in end statements for workspace cleanup when ex...

etwa 8 Jahre vor | 0

Beantwortet
Is it possible to disable crash dump files?
There may be a way for you to disable the crash dump files for your tasks, I suggest contacting support directly. The methods o...

etwa 8 Jahre vor | 0

Beantwortet
Error using loadlibrary line 440
The header file as written is not compatible with C code only c++. On first inspection It looks like the dll might be callable...

etwa 8 Jahre vor | 0

Beantwortet
Some Matlab versions crash when using listener
MATLAB is not crashing just taking a very long time to complete. Try it with smaller values of N and look how fast the time inc...

etwa 8 Jahre vor | 1

| akzeptiert

Beantwortet
rmdir frequently fails with the 'MATLAB:RMDIR:SomeDirectoriesNotRemoved' error
This is often caused by interaction with your virus scanner that happens to still be scanning / looking into files that may alre...

etwa 8 Jahre vor | 4

| akzeptiert

Beantwortet
Maximum possible array leak in standalone application
The application version of matlab does a few things to help increase the available memory and largest block size. # Link the ...

etwa 8 Jahre vor | 0

Beantwortet
Beginnning of file considered as code section
My first thought is don't put that code at the top of each script. Especially |clear all| it slows down the execution of the co...

mehr als 8 Jahre vor | 0

Beantwortet
Using calllib with a function that uses std::vector in its prototype
What you are trying won't work. loadlibrary only supports calling functions that are callable from C and header files that ca...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
Destruction of Objects with Cyclic References: MATLAB automated procedure is much too slow, how to turn it off (and reimplement a solution fitted to my needs by writing proper destructor methods)?
There is no way to toggle off the detection algorithms, doing so would cause enough objects to leak that MATLAB would probably b...

mehr als 8 Jahre vor | 0

Beantwortet
Using Matlab Generated Enumerators of External C Library
There is no straight forward way of doing this other then to write your own converter in C. typedef enum Enum1 {en1=1,en2,e...

mehr als 8 Jahre vor | 0

Beantwortet
Clearing variables does not clear RAM
Some questions and thoughts: # Task manager is not a very good way to track memory use by an application. I suggest looking ...

mehr als 8 Jahre vor | 0

Beantwortet
.dll files are not running in matlab.
It looks like those dlls might be old mex files. Mex files used the .dll extension in older 32 bit versions of MATLAB on Window...

mehr als 8 Jahre vor | 0

Beantwortet
Visual studio unable to load symbol file for libmwsimulink.dll
Failing to load the symbols for simulink is normal we do not ship symbols for MathWorks dlls. Are you sure that the command fai...

mehr als 8 Jahre vor | 0

Beantwortet
Multiple include paths in mex
You need to use two different variables or a cell array of paths: path1 = ['-I' fullfile(pwd,'tempInclude1')]; path2 = [...

mehr als 8 Jahre vor | 3

| akzeptiert

Mehr laden