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...
Asked 2 years ago
is there a efficient way that given a vector "vec" whose elements are monotonic increasing i can find the smallest index...
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...
how do i setup matlab such that it looks at the paths set in the environment variable of my computer. i am running matla...
i have complied a matlab function to c++ function using mcc.
the resulting c++ function needs mwArray's as input.
Asked 3 years ago
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...
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.
is it possible to generate c++ static library from matlab code. If so how.
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...
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.
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...
i have cuda toolkit 4.2 version and toolkit 5.0 installed in my computer.
in the environment variables the CUDA_PATH i...
in c++ i create an array
then i put values in it
c_arr_a[i] = 0.5;
i went through the mcc example but something is not clear. can someone please clarify. In the example we have
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 ...
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...
i have the following
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...
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...
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.
Join the conversation