필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Is there any way for my c++ to interpretate matlab variable or script?

조회 수: 1 (최근 30일)
Ki
Ki 2012년 3월 19일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi there,
I have a program written in c++ but which need an array, which is returned by a calculation from a matlab script, as input. For example, if I given the input parameter as
t = -pi:0.01:pi;
input = sin(t) + cos(t);
I would like my c++ to load the variable 'input' such that to traverse every single element. The touch part is the user may change the expression with valid matlab function. Is that any way to do that? By the way, if there is some library that helps, can the compiled program also work in any machine without matlab installed? Thanks.

답변 (1개)

Walter Roberson
Walter Roberson 2012년 3월 19일
If MATLAB is not installed then allowing the user to use any "valid matlab function" would be allowing the user to access the full power of MATLAB, and that is prohibited by the Terms of Use of the MATLAB Compiler.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by