Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear all
- close all
- clc
- x = 0:.01:16;
- % Pricing formulas for OSH Park, Circuits.io and iTead Studio
- OSH = 5.00000 / 3 * x;
- CIR = 0.87427 / 3 * x + 6.50;
- ITE = (9.90 / 10) * (heaviside(x) - heaviside(x - 3.875)) + ...
- (22.00 / 10) * (heaviside(x - 3.875) - heaviside(x - 7.750)) + ...
- (24.90 / 10) * (heaviside(x - 7.750) - heaviside(x - 15.5)) + ...
- (38.00 / 5) * heaviside(x - 15.5);
- UPV = 19.00 + (1 * x * (2 - 1));
- hold on
- plot(x, OSH, 'red');
- plot(x, CIR, 'blue');
- plot(x, ITE, 'green');
- plot(x, UPV, 'Color', [1 0 1]);
- title('Price vs sq in with extra boards accounted for')
- xlabel('Area in sq in')
- ylabel('Cost in USD')
- legend('OSH Park', 'Circuits.io', 'iTead', 'Upverter', 'Location', 'NorthWest')
- grid on
- % Intersection points
- text(4.66, 6.37, '\uparrow (4.76 sq in, $7.87)', 'HorizontalAlignment', 'left')
- text(0.39, 3, '\downarrow (0.59 sq in, $0.99)', 'HorizontalAlignment', 'left')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement