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!