Statistics
25 Questions
0 Answers
RANK
13,507
of 289,927
REPUTATION
3
CONTRIBUTIONS
25 Questions
0 Answers
ANSWER ACCEPTANCE
40.0%
VOTES RECEIVED
3
RANK
of 19,607
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 144,312
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
mxGetPr inside mexFunction returning null
i have a mexFunction() which i compile under visual studio. inside the mexFunction() i have sometthing like double *a = m...
11 years ago | 1 answer | 0
1
answerQuestion
using std::vector<double> inside mexfunction()
hi, i have the following ----myfunction.cpp------ #include<mex.h> #include<math.h> #include<matrix.h> #incl...
11 years ago | 0 answers | 1
0
answersQuestion
picking rows which has negative element.
hi, i have a matrix which can have negative elements. is ther eq quick and efficient way to pick the rows if any element in th...
11 years ago | 1 answer | 0
1
answerQuestion
throw error from a matlab compiled dll
i have a matlab function say f.m which i have compilled to a c++ dll using mcc. i want to throw error from inside f.m. question...
11 years ago | 0 answers | 0
0
answersQuestion
problem with nvmex compilation
hi, i have cuda toolkit 5 installed. inside matlab i can use "nvmex prog.cu" to compile a cuda program. then i installed "NV...
11 years ago | 0 answers | 0
0
answersQuestion
how to set cuda path
hi, i have cuda toolkit 4.2 version and toolkit 5.0 installed in my computer. in the environment variables the CUDA_PATH i...
11 years ago | 1 answer | 0
1
answerQuestion
debugging cuda files inside visual studio
i have a cpp function (function.cpp") which i "mex"-ed. then i open the function.cpp file in visual studio and attach visual stu...
11 years ago | 0 answers | 0
0
answersQuestion
counting n subsequent element of an array
say i have an array a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; is there a easy way to add say n=3 elements at a time and form ano...
11 years ago | 2 answers | 0
2
answersQuestion
figuring out the index of a vector which matches certain criterion
say i have a vector x1 = [3,4,6,7,8,9]; say i have another vector x2 = [4,8]; is there a way to figure out the index where x...
11 years ago | 1 answer | 0
1
answerQuestion
fast way of filing up a matrix with function calls
i have a 2-D matrix m(i,j). for each (i,j) some function f(i,j) has to be evaluated and that fills up the matrix m(i,j). present...
11 years ago | 2 answers | 0
2
answersQuestion
smallest n such that vector(n) < a
hi, is there a efficient way that given a vector "vec" whose elements are monotonic increasing i can find the smallest index...
11 years ago | 2 answers | 0
2
answersQuestion
index of a mnatrix to negative
hi, i have a matrix a =1:10; so a(1) = 1 and and a(10)=10 is it possible to start indexing from say -3. so a(-3)...
11 years ago | 2 answers | 0
2
answersQuestion
element wise multiplication and sum
hi, i have a matirx a = [1,2,3;4,5,6]; and another matrix b=[2,2,2] i want to multiply a[i,:].*b where i=1,2 (i.e. the r...
11 years ago | 3 answers | 0
3
answersQuestion
how to flatten a matrix in row major order
hi , how do i flatten a matrix in row major order. thanks.
11 years ago | 2 answers | 0
2
answersQuestion
setting environment paths in matlab
hi, how do i setup matlab such that it looks at the paths set in the environment variable of my computer. i am running matla...
11 years ago | 2 answers | 0
2
answersQuestion
unable to mex a dll library to matlab code.
i have the following simple code: extern "C" __declspec(dllexport) double __cdecl MLtest(double arg1,double arg2) { ...
11 years ago | 2 answers | 0
2
answersQuestion
how to generate c++ static library from matlab code
hi, is it possible to generate c++ static library from matlab code. If so how. Thanks
11 years ago | 1 answer | 0
1
answerQuestion
how to initialize a mwArray
hi, in c++ i create an array double c_arr_a[14]; then i put values in it for(i=0;i<14;i++) { c_arr_a[i] = 0.5; ...
11 years ago | 1 answer | 1
1
answerQuestion
debugging a mcc compiled function.
hi, i am following the mcc example to compile a matlab function. after compiling i have a library for the simple function ...
11 years ago | 0 answers | 0
0
answersQuestion
mwArray crashing in c++ code
hi, i have complied a matlab function to c++ function using mcc. the resulting c++ function needs mwArray's as input. i...
11 years ago | 2 answers | 0
2
answersQuestion
argument structure in matlab compiled libraries.
hi, i went through the mcc example but something is not clear. can someone please clarify. In the example we have functio...
11 years ago | 0 answers | 1
0
answersQuestion
linking error for mwArray in c++
Hi, i have a matlab code which i have compiled with mcc as a result the matlab function is now a c++ function which has t...
11 years ago | 1 answer | 0
1
answerQuestion
mcc compiler unicode flag
hi, i want to use the mcc to compile a .m file to a c++ library. is there a way to specify compiler option so that the .m ...
11 years ago | 1 answer | 0
1
answerQuestion
how to use mexCallMATLAB with fmincon
hi, it would be kind of someone to clarify a couple of issues i am having. i am new to matlab so some please give me a det...
11 years ago | 1 answer | 0
1
answerQuestion
how can i compile fmincon() to produce a dll which i can eventually call from my C++ code.
how can i compile fmincon() to produce a dll which i can eventually call from my C++ code.
11 years ago | 0 answers | 0