mex
How to make printf work when it is in a separate c file that is called from an s-function?
I have an s-function in file mySFun.c that calls a function foo() which is implemeted in 开发者_JS百科a separate file myFoo.c. When I write printf statements inside the mdlOutput function in mySFun.c,[详细]
2023-03-08 08:33 分类:问答Mex sparse matrix
I created a sparse matrix in MEX using mxCreateSparse. mxArray *W; W=mxCreateSparse(n*n,n*n,xsize,mxREAL);开发者_运维百科[详细]
2023-03-08 01:06 分类:问答Matlab MEX File: Program Crashes in the second run: Access Violation in Read
I have a C++ code that I am trying to interface with Matlab. My mex file runs fine in the first run but crashes in the second run. However, if I clear all the variables in the Matlab before execution[详细]
2023-03-07 07:37 分类:问答Question about matlab mex-file memory
Hey there, assuming I have the following code in a mex routine: mxArray *newPoint = mxDuplicateArray(prhs[0]);[详细]
2023-03-06 08:41 分类:问答Floating point problems in C and Matlab
Hey there, I have floating point problems in my matlab-mex file where I get values at the magnitude 10^(-12) to 10^(-13)... Is there an \'开发者_如何学编程dirty\' way to solve them to at least set tho[详细]
2023-03-06 08:36 分类:问答WCF mex does not contain the complete binding information from the host
I\'m publishing a service with a MEX endpoint for metadata exchange and I\'m using the code below to discov开发者_如何学Pythoner it and get the metadata information[详细]
2023-03-05 06:06 分类:问答How to stop Matlab crashing on (wrong) mex-file execution with CUDA functionality
I\'m currently developing a mex-file with CUDA functionality to be used in MATLAB. When I\'m doing something wrong (e.g. wrong pointers or something like that), MATLAB always crashes (windows prompts[详细]
2023-03-05 04:39 分类:问答MATLAB & Mex-Files: Auto-optimization of CUDA-Code depending on Input-Parameters size
Hey there, I\'m currently developing a Mex-file in matlab including CUDA computation. I wonder if there\'s a good way to \'automatically\' optimize the program for arbitrary input parameters from the[详细]
2023-03-05 04:36 分类:问答Compile a matlab m-file into a usable C-function
Hey there, is there a way to compile (or better to say: \'translate\') a matlab m-function into a C-function so that I can use it in the CUDA kernel of my mex file?[详细]
2023-03-03 23:32 分类:问答Matlab Mexfiles and Cuda: Evaluate function handle
Hey there, I have a mex file which I want to parallelize with the help of CUDA. The current functionality is: I pass a function handle and a huge number of \'points\' to the mex file and it evaluates[详细]
2023-03-03 19:11 分类:问答