已回答
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...

11 years 前 | 0

| 已接受

已回答
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 ...

11 years 前 | 3

| 已接受

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 1

| 已接受

已回答
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...

11 years 前 | 1

已解决


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

11 years 前

已回答
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...

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 0

已回答
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]);...

11 years 前 | 0

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 1

| 已接受

已回答
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....

11 years 前 | 2

| 已接受

已回答
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...

11 years 前 | 1

已回答
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...

11 years 前 | 1

| 已接受

已回答
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 ...

11 years 前 | 1

| 已接受

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 0

已回答
loadlibrary - Matlab R2013b 64bit
Contacting support may be your best option for this problem. Something is most likely not configured or installed correctly wit...

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 1

已回答
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...

11 years 前 | 0

| 已接受

已解决


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

11 years 前

已解决


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

11 years 前

已解决


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

11 years 前

已回答
Matlab Calllib with macros
Your best option is to create a mex file. Macros are not part of the interface to a shared library.

11 years 前 | 0

已回答
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...

11 years 前 | 1

| 已接受

已回答
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...

11 years 前 | 1

已回答
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...

11 years 前 | 0

加载更多