Due to daily fluctuating gas costs, your company wishes to calculate the shippin
ID: 3348593 • Letter: D
Question
Due to daily fluctuating gas costs, your company wishes to calculate the shipping cost (SC) [-1 of these parts, using the following formula SCE 1e4 (sin (M Tt)) where t is the time in days, M is a dimensionless multiplication constant, and E is an exponential factor with units of inverse days [1/days]. No unit conversions are required in this problem. Create a vector to model the time (t) from O to 5 days in increments of O.1 days. Set the multiplication constant (M) to 2 and the exponential factor (E) to 25 Calculate the shipping cost (SC) for all values of time (t) Plot the theoretical results, with SC on the ordinate. The gridlines, axis limits, axis labels, title, and data line must match exactly to the graph shown. Both axis labels should use a bold, 12 point font. Other text may use the default yalues. The data line is dotted red with a width of 3 pixels. The figure background should be white. Estimated Shipping Cost 50 40 52. 25Explanation / Answer
Matlab Code :
t = 0:0.1:5;
M = 2;
E = 25;
pi = 3.14;
y1 = 1 + exp(-t/4);
y2 = sin(M * pi * t);
SC = (E * (y1.* y2))
figure
plot(t, SC)
title (' Estimated Shipping Cost ')
xlabel (' Number of days (t) [days] ')
ylabel (' Shipping Cost (SC) [$] ')
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.