Write function for car sales
2 ビュー (過去 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 で Install Products についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!