Can someone help me convert C++ to Matlab
1 次查看(过去 30 天)
显示 更早的评论
Help please
I've tried how to do it but I don't get it
1 个评论
Raj
2019-12-3
Looks straightforward. You have mentioned that you have tried something. Can you post that? It doesn't matter if its wrong. We'll take it from there.
回答(1 个)
James Tursa
2019-12-3
编辑:James Tursa
2019-12-3
The += and *= operators behave as follows:
total_salary += daily_salary;
becomes
total_salary = total_salary + daily_salary;
and
daily_salary *= INCREMENTAL_AMOUNT;
becomes
daily_salary = daily_salary * INCREMENTAL_AMOUNT;
The rest is just putting in the value checks and displaying values using MATLAB syntax.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!