Réponse apportée
loadlibrary using default is not working
This looks like an installation issue with your compiler (you do have a c compiler installed?). I would first see if the mex co...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
unable to call windows API "FindWindow" and errors in using calllib
Loading a Windows dll via windows.h is not a simple task and is quite slow. The best solution for a few functions is to create ...

presque 11 ans il y a | 3

| A accepté

Réponse apportée
error in calling functions from a DLL file
Is the windows system directory on your MATLAB path? It should not be and is causing the warnings that look like: Warni...

presque 11 ans il y a | 0

Réponse apportée
Pass DWORD pointer by using 'calllib' to c function
A DWORD is a uint32 in matlab but no libpointer or conversion should be necceary. You did not give enough information to form...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
error to load dll API using load libary
Those header files contain c++ classes which are not supported by loadlibrary. I very much doubt they worked or would work usin...

presque 11 ans il y a | 1

A résolu


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

presque 11 ans il y a

Réponse apportée
Matlab 2014a EXC_CRASH (SIGSEGV) crash when calling .dylib
I suggest contacting support for this type of issue. Some initial thought that may be way off base do to lack of informatio...

presque 11 ans il y a | 0

| A accepté

Réponse apportée
system() call on windows, R2012b & R2014b, handling error popups
The chained commands work for me as seen buy the output of: system(['path &set path=%path:' matlabroot '\bin\win64;=% & pat...

presque 11 ans il y a | 0

Réponse apportée
Issue while passing array data other than double data type from C to Matlab using MexFunction
Problem here: plhs[0] = mxCreateNumericArray(2,dims,mxUINT16_CLASS,mxREAL); out1 = (unsigned int *)mxGetData(plhs[0]);...

presque 11 ans il y a | 0

Réponse apportée
Building .mexw64 files from c++ dlls
There are a many things going wrong here but the biggest problem is that you have a 32 bit dll and 64 bit MATLAB. That will not...

presque 11 ans il y a | 0

Réponse apportée
saving variable with -v7.3 flag check
Use the |whos| function: varinfo=whos('data'); saveopt=''; if varinfo.bytes >= 2^31 saveopt='-v7.3'; end s...

presque 11 ans il y a | 1

| A accepté

Réponse apportée
nested function call using inputname crashes matlab
You have found a bug in the MATLAB jit. This code works correctly if you enter |feature accel off| from the command line first....

presque 11 ans il y a | 2

| A accepté

Réponse apportée
genvarname command removed or not working?
|genvarname| has not been removed from R2014b, the code you posted works for me. |genvarname.m| should be in the toolbox direct...

environ 11 ans il y a | 1

Réponse apportée
Incompatibilities between JVM and MEX?
First guess is that one of the libraries you are using is installing a signal handler. Any third party signal handler is likely...

environ 11 ans il y a | 1

| A accepté

Réponse apportée
Issue with calling function from a DLL with calllib
You need to fix the input type of buffer_size_bytes first. Loadlibrary requires a header file that compiles stand alone. Your ...

environ 11 ans il y a | 1

| A accepté

Réponse apportée
How do I prevent frequent crashes when using simulink (R2014b)?
Having a 32 bit version of Java on the machine will not cause problems. Whether or not Java is up to date is not important. If...

environ 11 ans il y a | 0

Réponse apportée
Loadlibrary does not work with DLL function
You need a C header file (somefile.h) to load a library in MATLAB it is possible that you can create one by pasting the decelera...

environ 11 ans il y a | 0

Réponse apportée
cstring datatypes in library function calls dll files
Try : [retval,name]=calllib('pxc','pxcGetDeviceName',0,blanks(200),200); It is best to start by letting calllib do the da...

environ 11 ans il y a | 0

Réponse apportée
loadlibrary - Matlab R2013b 64bit
Contacting support may be your best option for this problem. Something is most likely not configured or installed correctly wit...

environ 11 ans il y a | 0

| A accepté

Réponse apportée
How can I access the methods of a returned object?
Don't use dot to call the method: classmethod(myfunc(123)); In MATLAB with _standard objects_ there is no difference betw...

environ 11 ans il y a | 0

Réponse apportée
Question to MATLAB profiler and speed of code (spline calculation during optimization)
Your attempted pre-allocation by calling zeros for xj and yj is not doing anything useful and may be costing a small amount of t...

environ 11 ans il y a | 0

Réponse apportée
How Do I free up a Fortran Mexed substructure (running out of memory-leaking memory)
Unless you are calling mexMakeArrayPersistent I suspect you have another leak than that one. Matlab will eventually clean up al...

plus de 11 ans il y a | 1

Réponse apportée
Problem using external shared library with pointers
Because ppcImgMem is an image not a string the best solution here is to create a prototype file using the mfilename option to lo...

plus de 11 ans il y a | 0

| A accepté

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

plus de 11 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 11 ans il y a

A résolu


Text processing - Help Johnny write a letter home from camp
Johnny overuses the word 'great'. Write a script that will help him with this and future letters. If a sentence contains more ...

plus de 11 ans il y a

Réponse apportée
Matlab Calllib with macros
Your best option is to create a mex file. Macros are not part of the interface to a shared library.

plus de 11 ans il y a | 0

Réponse apportée
Can Matlab Student compile mex files?
Yes, But, You must have a supported c++ compiler installed and configured (mex -setup) on your system. MATLAB does not ship...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Increase limit on number of open files
It is quite possible that you are hitting the system limit and MATLAB is using the other handles. Java tends to keep each jar f...

plus de 11 ans il y a | 1

Réponse apportée
Using static library in Matlab
Static libraries must be turned into dynamic (shared) libraries before they can be used by an existing program. The simplest wa...

plus de 11 ans il y a | 0

Charger plus