贡献一个买新车算价的MATLAB小code# Automobile - 车轮上的传奇
x*e
1 楼
根据精华区买新车如何还价一帖(http://www.mitbbs.com/bbsann2/life.faq/Automobile/buysell/M.1187975267.l0/教你如何砍价(新车))编了一个MATLAB小code回报本版,请笑纳!
close all;clear all;clc;
TotalInvoice = 19923;
MSRP = 21205;
Rebate = 1250;
Holdback = 0.02*TotalInvoice; %Nissan
TrueInvoice = TotalInvoice - Rebate - Holdback;
Tax = 1150;
Tag = 120;
LowerBall = TrueInvoice + Tax + Tag - 2000;
TargetPrice = (MSRP - Rebate - LowerBall)/2 + LowerBall % Out-The-Door(OTD)
Price
close all;clear all;clc;
TotalInvoice = 19923;
MSRP = 21205;
Rebate = 1250;
Holdback = 0.02*TotalInvoice; %Nissan
TrueInvoice = TotalInvoice - Rebate - Holdback;
Tax = 1150;
Tag = 120;
LowerBall = TrueInvoice + Tax + Tag - 2000;
TargetPrice = (MSRP - Rebate - LowerBall)/2 + LowerBall % Out-The-Door(OTD)
Price