Converting C++ to matlab

1 view (last 30 days)
RMTA on 18 Oct 2021
Answered: Shanmukha Voggu on 26 Oct 2021
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++)
float smallest=t1-t2;
int ansTime=0;
for (int count=1;count<6;count++)
{if (t1-t2[count]<=smallest)}
  1 Comment
Rik on 18 Oct 2021
If you know C++ this should be easy. What did you try? Did you do a basic Matlab tutorial?

Sign in to comment.

Answers (1)

Shanmukha Voggu
Shanmukha Voggu on 26 Oct 2021
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:

Community Treasure Hunt

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

Start Hunting!