Converting C++ to matlab

조회 수: 6 (최근 30일)
RMTA
RMTA 2021년 10월 18일
답변: Shanmukha Voggu 2021년 10월 26일
Need help on converting this codes to matlab:
float t1=(Cs-Cx);
float t2[5];
int time[5];
for (int count = 1; count<6;count++)
{t2=d/2;}
float smallest=t1-t2;
int ansTime=0;
for (int count=1;count<6;count++)
{if (t1-t2[count]<=smallest)}
smallest=t1-t2[count];
ansTime=count*10
  댓글 수: 1
Rik
Rik 2021년 10월 18일
If you know C++ this should be easy. What did you try? Did you do a basic Matlab tutorial?

댓글을 달려면 로그인하십시오.

답변 (1개)

Shanmukha Voggu
Shanmukha Voggu 2021년 10월 26일
Hi,
This can be achieved by acquiring basic knowledge regarding MATLAB syntax if you are familiar with C++ as mentioned by Rik
Refer this for more information:

카테고리

Help CenterFile Exchange에서 Data Exchange and Mapping with C++ Applications에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by