Manually from c++ to matlab how?

1 Ansicht (letzte 30 Tage)
m m
m m am 23 Okt. 2020
Beantwortet: Image Analyst am 23 Okt. 2020
i would like to convert this example class from cpp to matlab language
bool EXampleC(double *x, double *B)
{
int A = domain.A;
double dx2 = domain.dx*domain.dx;
double *a = new double[A];
double *b = new double[A];
double *c = new double[A];
}
thanks

Antworten (1)

Image Analyst
Image Analyst am 23 Okt. 2020
Such a function in MATLAB might look something like this:
function [A, dx2, a, b, c] EXampleC(domain)
A = domain.A;
dx2 = domain.dx * domain.dx;
a = A;
b = A;
c = A;

Kategorien

Mehr zu Data Export to MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by