Manually from c++ to matlab how?

조회 수: 1 (최근 30일)
m m
m m 2020년 10월 23일
답변: Image Analyst 2020년 10월 23일
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

답변 (1개)

Image Analyst
Image Analyst 2020년 10월 23일
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;

카테고리

Help CenterFile Exchange에서 Data Export to MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by