Converting C++ to matlab

2 ビュー (過去 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 Center および File ExchangeData 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