Respondida
Mutiply 4d array of size (360,210,63,48) by vector of length 48?
I think this will do it if you want Final2 to be the same shape as Final (not at a machine with MATLAB right now): z = size...

alrededor de 13 años hace | 1

| aceptada

Respondida
How does matlab normalize its eigenvectors?
If "... not matching up ..." just means that the ordering is different, you might look into this FEX submission by John D'Errico...

alrededor de 13 años hace | 0

Respondida
What's the meaning of mmult in matlab
You might also look at this FEX submission by Bruno Luong: <http://www.mathworks.com/matlabcentral/fileexchange/27950-mmtimes...

alrededor de 13 años hace | 0

Respondida
What happens when Matlab exits C-Mex program after a pointer was overridden
1. It doesn't matter what value pA holds when the mex file exits. These addresses are being kept track of by the MATLAB Memory M...

alrededor de 13 años hace | 2

Respondida
Access value in cell arrays
Another variation: x = [A{:,1}]; B = [x.str];

alrededor de 13 años hace | 1

Respondida
converting a large uint16 array to doubles
Not sure if this is what you are really asking, u = your uint16 array d = double(u);

alrededor de 13 años hace | 3

| aceptada

Respondida
Without using the roots command, write a function to calculate roots of the quadratic equation
You can use one of the formulations here: <http://en.wikipedia.org/wiki/Quadratic_equation> The quadratic formula is liste...

alrededor de 13 años hace | 0

Respondida
Inverse matrix in fortran mexFunction - matlab lapack library
The general crashing problem is caused by the fact that you use complex LAPACK routines when you don't have complex inputs or ou...

alrededor de 13 años hace | 1

| aceptada

Respondida
cant find mexopts.bat
Type the following at the command line prompt: mex -setup Then press ENTER when it asks you if you want to search for co...

alrededor de 13 años hace | 0

Respondida
Can mexw64 files be used on 32 bit matlab?
You cannot run mexw64 code with 32-bit MATLAB. You either need to run them with a 64-bit MATLAB, or recompile the source code in...

alrededor de 13 años hace | 1

| aceptada

Respondida
How can I covert a c code to a MEX file?
You should read the documentation on creating and compiling mex functions. You need a special interface function (mexFunction). ...

alrededor de 13 años hace | 1

| aceptada

Respondida
Lapack and Blas on Matlab student version
LAPACK and BLAS dependency (e.g., for matrix multiplication etc) would be the same for the student version. The version of LAPAC...

alrededor de 13 años hace | 0

Respondida
How do we know that MATLABs algorithms are working properly?
Well, ultimately how do you know that *any* language (C, Fortran, Python, MATLAB, etc) is compiling/running your code correctly?...

alrededor de 13 años hace | 1

Respondida
Is it allowed for a function to have return type of mxArray?
mxArray is defined as an incomplete type in the API header files, hence the prohibition against declaring an mxArray type ... on...

alrededor de 13 años hace | 2

| aceptada

Respondida
How to call mexCallMATLAB on a function that has inputs of different types?
mxArray *normInputs[2]; mxArray *normOutputs[1]; normInputs[0] = mxCreateDoubleMatrix(2,2,mxREAL); // a double matrix ...

alrededor de 13 años hace | 1

Respondida
Matrix as input argument of a matlab function
How are you calling the function? E.g., are you doing this: A = rand(2,2); % sample data B = rand(2,2); % sample data ...

alrededor de 13 años hace | 0

Respondida
run mex without argument
If you are not passing in any arguments or passing out any results, it is pretty simple. Just replace the "main" line with the "...

alrededor de 13 años hace | 1

| aceptada

Respondida
How can I pass a user defined class to a MEX-File?
Pass it in just like any other variable. If it is an old-style class (using @classname directory with multiple files) you ca...

alrededor de 13 años hace | 2

| aceptada

Pregunta


Mex API Wish List
I thought I would start a thread to list all of the desired changes, upgrades, and additions to the official mex API. So here go...

alrededor de 13 años hace | 2 respuestas | 9

2

respuestas

Enviada


mexPutVariableSharedDataCopy
This C routine puts a shared data copy of a variable into a workspace from a mex routine

alrededor de 13 años hace | 288 descargas |

0.0 / 5
Thumbnail

Respondida
Is there a helper mex function for printing the contents of an mxArray?
E.g., the code for Kaustubha's suggestion: mxArray *myvariable; // code to fill in myvariable here mexCallMATLAB(0,NU...

alrededor de 13 años hace | 1

Respondida
Is there an easy way to copy part of an array using mex functions?
There is no mex API function for this directly, but it would be easy to accomplish a simply copy (e.g., a single column) with a ...

alrededor de 13 años hace | 1

Respondida
Mex builds in Matlab, but crashes. Breakpoint not reached in Visual Studio debugging
double *outMatrix; // output matrix : plhs[0] = mxCreateNumericArray(3, dims, mxSINGLE_CLASS, mxREAL); ...

alrededor de 13 años hace | 1

| aceptada

Respondida
How to share memory between C and MATLAB?
Your C application and your MATLAB program are separate processes with their own separate address spaces. When each pulls in the...

alrededor de 13 años hace | 3

Respondida
how to run mexFunction
Just transform the one "main" function into a mexFunction. Then that will call all the underlying C++ functions. There is only *...

alrededor de 13 años hace | 1

| aceptada

Respondida
return value of large arrays from mex differs?
1) Generally no. If you have a memory constraint that is being hit, it will not in and of itself change a floating point calcula...

alrededor de 13 años hace | 1

Pregunta


Allow Question Markup Capability with fewer Reputation Points
Currently it takes 2000 reputation points before one is allowed markup privileges (as part of overall editing privileges). <h...

alrededor de 13 años hace | 4 respuestas | 5

4

respuestas

Respondida
How can I rename variables containing forbidden characters once they are already imported to workspace?
You can do this with a mex routine. I have already posted code for fixing workspace names for this exact problem. I don't have t...

alrededor de 13 años hace | 1

| aceptada

Respondida
Sparse and nonspare QR
What happens when you compare the complete result, e.g., [a1 r1] = qr(X); [a2 r2] = qr(full(X)); Then compare a1*r1 w...

alrededor de 13 años hace | 1

Respondida
For an n x n matrix, does matlab calculate the eigenvalues in some pattern? If not, is there a way to make it so?
You might try this FEX submission by John D'Errico: <http://www.mathworks.com/matlabcentral/fileexchange/22885-eigenshuffle> ...

alrededor de 13 años hace | 1

| aceptada

Cargar más