Write function for car sales
1 次查看(过去 30 天)
显示 更早的评论
Hello,
Can you help me werite a function called car_sale_profit.m
'Profit' if car sales ⩾ 1000 and ≤ 2000
'Loss' if car sales ⩾ 0 and < 1000
The function should use one scalar input (car sales profit).
It should display text to screen for the clients.
Thank you.
0 个评论
回答(1 个)
KALYAN ACHARJYA
2019-10-22
编辑:KALYAN ACHARJYA
2019-10-22
2 个评论
KALYAN ACHARJYA
2019-10-22
编辑:KALYAN ACHARJYA
2019-10-22
Just call it from command window or from any other Matlab script
Command Window:
sales_fun(enter_any sales_number_here);
%...............^^^^
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 External Language Interfaces 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!