Write function for car sales
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
KALYAN ACHARJYA
il 22 Ott 2019
Modificato: KALYAN ACHARJYA
il 22 Ott 2019
2 Commenti
KALYAN ACHARJYA
il 22 Ott 2019
Modificato: KALYAN ACHARJYA
il 22 Ott 2019
Just call it from command window or from any other Matlab script
Command Window:
sales_fun(enter_any sales_number_here);
%...............^^^^
Vedere anche
Categorie
Scopri di più su Install Products in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!