Converting C++ to matlab
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
Réponses (1)
Shanmukha Voggu
le 26 Oct 2021
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:
0 commentaires
Voir également
Catégories
En savoir plus sur Data Exchange and Mapping with C++ Applications dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!