0
votes
1answer
37 views

using integer arrays on mex

I want to pass an integer array from MATLAB to C. I've tried using the type uint64_T but it keeps crashing. Getting a double pointer using mxGetPr() works fine, but I need to typecast the content ...
1
vote
1answer
45 views

integration of MATLAB output with a C/C++ program in Linux

I have designed a neural network in MATLAB. I saved the 'net' file which including the structure of the trained network and other required parameters. Also, I have a program written by C language in ...
1
vote
1answer
36 views

mexCallMATLAB syntax for assigning output

I've spent a week on the following problem and I can't for the life of me figure it out! I'm going to be as brief as possible with the code and chop out irrelevant lines but it should be clear as to ...
1
vote
3answers
70 views

C programming: translated function from MATLAB to C gives slightly (but significantly) different result

I have been trying to translate some MATLAB code into C but one particular function is giving me different results between the two languages. I don't think it is a precision error because the values ...
1
vote
2answers
43 views

how to convert longitude and altitude to a grid with equal(nearly) area on the Earth sphere in Matlab or C/C++?

The range of longitude and latitude of Earth sphere are [-180, 180] and [-90, 90] respectively. I want to get equal area grids by 0.5 deg * 0.5 deg (area around the equator). As the distortion ...
0
votes
1answer
96 views

Translating from Matlab to C a function

I m translating a funciton from MAtlab to C. I have a problem with just some lines with Fourier Transform. This is the code, the commented lines are in Matlab and is what I need to translate. Mat ...
1
vote
1answer
54 views

C equivalent of matlab angle function

I am dying here. So I have a complex number(-4.9991 + 15.2631i). In matlab if I do angle(-4.9991 + 15.2631i) = 1.8873 I thought that angle basically calculated like atan(15.2631/-4.9991) = ...
0
votes
0answers
18 views

Interfacing Matlab and C What are the entry point names for libmwfl.dll?

How do I confirm the Entry Point Name of libmwfl.dll? Compiled engwindemo.c with gcc. Matlab and gcc are 64bit versions. I have a batch file with the following: set VAR=-mms-bitfields -I "C:/Program ...
0
votes
1answer
44 views

Execution Error : Part of C code compiled but not being executed properly in ECM

I am working on ECM (using gcc compiler we generate the hex file and flash it on controller) There is a code x=(a+b)/2, what ever the value of a and b, but the value in x is always zero. I have a ...
1
vote
1answer
29 views

Detecting PE's 'on-the-wire'

I'm looking for suggestions of how I can detect the start of a windows PE (portable execution) by inspecting a stream of bytes I know there are certain headers that I can look for, what combination ...
0
votes
1answer
53 views

How to get Image matrix of an image using libjpeg

Does any function in libjpeg outputs an image matrix just like imread does in matlab?
0
votes
1answer
87 views

Crash when calling MATLAB via engOpen in C/C++ with mingw-w64 on 64 bit Windows 7

I am trying to figure out why my C/C++ program crashes when I call MATLAB's engine with engOpen(). The code below prints "Hello World" and then throws an "APPCRASH". What might be causing this ...
0
votes
0answers
35 views

automatic ring network build [closed]

I have some nodes (point) and I have to connect them into a Ring network topology. Ring network wiki My first idea was to connect the nodes to their nearest neighbors. It works while the algorithm ...
1
vote
1answer
70 views

Is there any existing library that has matlab functions implemented in C/CPP/Obj-C?

I am using an algorithm that is only implemented in Matlab. However I need to run it with gcc, once I do not have the needed Matlab licenses neither for server or for porting the code. Sp, I'm ...
0
votes
0answers
105 views

mex call matlab function within openmp parallel region

I'm writing a mex function, and I want to use openmp to accelerate the for loop. Within the loops, I call several custom matlab functions. The mex function compiles fine, but calling it makes matlab ...

1 2 3 4 5 18
15 30 50 per page