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!