Questions tagged [mixed-programming]

Short for Mixed-Language Programming, which is the process of building programs in which the source code is written in two or more languages (e.g. call existing code that may be written in another language).

Short for Mixed-Language Programming.

Mixed-language programming is the process of building programs in which the source code is written in two or more languages. Although mixed-language programming presents some additional challenges, it is worthwhile because it enables you to call existing code that may be written in another language.

To learn more:

27 questions
1
vote
4 answers

Use Matlab data structures in C++?

I am currently working on a project in C++, and I am actually interested in using Matlab data structures, instead of having to create my own data types (such as matrices, arrays, etc.) Is there a way to seamlessly use Matlab objects in C++? I don't…
kloop
  • 4,537
  • 13
  • 42
  • 66
0
votes
2 answers

How to call matlab function from VS2010

I need in my program to load an image data like what matlab does when it loads images and store it in a matrix, and then I will do some operations on this matrix and view it after that. so I need some help, how can i use matlab functions with…
Ruba
  • 885
  • 4
  • 18
  • 29
0
votes
0 answers

Mixed programming between scheme and C

I'm reading the CSUG to learn the FFI of chez-scheme. So I may have some beginner's error. I just want to know is there some question of FFI. C have some type of data, just like char, float, double, int, functions, struct, union, or enumeration. But…
Novice
  • 1
  • 3
0
votes
1 answer

An error of chez-scheme FFI just like because of C Cross-platform

There is a c file #include #include struct termios raw; int raw_on(void) { if (tcgetattr(0, &raw) == -1) return -1; raw.c_lflag &= ~ECHO; raw.c_lflag &= ~ICANON; raw.c_lflag &= ~ISIG; //…
Novice
  • 1
  • 3
0
votes
0 answers

using an if statement to have an intracompatible code between Octave and MATLAB

On par with this question, I want to have some pieces of code which only run depending if the interpreter is either MATLAB or Octave. For example if Octave % Octave specific code elseif MATLAB % MATLAB specific code else % other…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
0
votes
1 answer

Trying to call Intel Visual Fortran function from Visual C

I have two projects: CPart and FortranPart in my solution. FortranPart depends on CPart and the later contains the main function. Here is code of the main.c #include extern int __stdcall FORTRAN_ADD(int *A, int *B); int main() { int…
0
votes
1 answer

MIXED_STR_LEN_ARG with gfortran

I have a program in mixed C++/Fortran, in which a C++ character is given as argument for a Fortran function. The code is compiling and working with ifort compiler, using the option -mixed_str_len_arg, which specifies the position of the hidden…
0
votes
1 answer

How do I pass C structure into Python when embedding a Python module in a C program

I have a working C program and now I'm embedding a python script implementing a specific function. The question is, the arguments passed into Python is a complicated(I mean nested) C structure defined in C. And I hope the solution would be able to…
Chi
  • 55
  • 9
0
votes
1 answer

passing parameter for calling a matlab function in c++

using deployment tool I produced the c++ shared library. My Matlab Function just get one input parameter which is the path of images, and return a 1*6 vector in double; I searched a lot on net and found the steps the calling Matlab functions in…
0
votes
1 answer

Use filters which were created with fdatool in c++

I created some filters with fdatool in Matlab. Now I want to use this filters in a windows aplication using c++. I search some libraries to filter in c++, but these libraries has functions which implement filters like chebyshev,etc. But i want use…
Telo Pena Barreiro
  • 277
  • 1
  • 6
  • 15
0
votes
1 answer

How to call Matlab functions from Visual studio mfc project?

What I have done is following the guidline in this website Now, I want to use some functions like rgb2gray() and imresize()... but I dont know how to use them, or I dont know which header file should I include in my project? I have tried other way…
Tung Pham
  • 579
  • 4
  • 11
  • 29
-1
votes
1 answer

Error LNK2019: unresolved external symbol in matlab

I have been at this for 2 days and have tried every possible solution I can find via a search engine. But I still am stuck here. I downloaded a package for superpixel implementation from here. The function is in C++, but a mex file has been…
Lakshmi Narayanan
  • 5,220
  • 13
  • 50
  • 92
1
2