Community Profile

Contact

Top 5% contributor

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

2 Answers

0

Asked 2 years ago

hi, is there a efficient way that given a vector "vec" whose elements are monotonic increasing i can find the smallest index...

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

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

hi, i have complied a matlab function to c++ function using mcc. the resulting c++ function needs mwArray's as input. i...

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

1 Answers

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

hi , how do i flatten a matrix in row major order. thanks.

hi, is it possible to generate c++ static library from matlab code. If so how. Thanks

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

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

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

i have the following simple code: extern "C" __declspec(dllexport) double __cdecl MLtest(double arg1,double arg2) { ...

i have a mexFunction() which i compile under visual studio. inside the mexFunction() i have sometthing like double *a = m...

Asked 1 year ago

hi, i have cuda toolkit 4.2 version and toolkit 5.0 installed in my computer. in the environment variables the CUDA_PATH i...

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

0 Answers

1

hi, i went through the mcc example but something is not clear. can someone please clarify. In the example we have functio...

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

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

hi, i have the following ----myfunction.cpp------ #include<mex.h> #include<math.h> #include<matrix.h> #incl...

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

hi, i have cuda toolkit 5 installed. inside matlab i can use "nvmex prog.cu" to compile a cuda program. then i installed "NV...

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

hi, i am following the mcc example to compile a matlab function. after compiling i have a library for the simple function ...

how can i compile fmincon() to produce a dll which i can eventually call from my C++ code.