Risposto
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...

circa 8 anni fa | 0

Risposto
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 ...

circa 8 anni fa | 0

Risposto
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...

circa 8 anni fa | 0

| accettato

Risposto
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...

circa 8 anni fa | 0

Risposto
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...

circa 8 anni fa | 0

Risposto
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...

circa 8 anni fa | 0

| accettato

Risposto
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 ...

circa 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 0

Risposto
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://...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 1

Risposto
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 ...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 1

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 1

| accettato

Risposto
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...

oltre 8 anni fa | 4

| accettato

Risposto
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 ...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 1

| accettato

Risposto
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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 0

Risposto
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 ...

oltre 8 anni fa | 0

Risposto
.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...

oltre 8 anni fa | 0

Risposto
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...

oltre 8 anni fa | 0

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

oltre 8 anni fa | 3

| accettato

Carica altro