Due to daily fluctuating gas costs, your company wishes to calculate the shippin
ID: 3935754 • Letter: D
Question
Due to daily fluctuating gas costs, your company wishes to calculate the shipping cost (SC) (.) of these parts, using the following formula SC = E(1 + e^-t/4(sin (M pi t))) 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 0 to 5 days in increments of 0.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 values. The data line is dotted red with a width of 3 pixels. The figure background should be white.Explanation / Answer
E=input('enter the expo constant(E):'); %25
M=input('enter the multi constant(M):');% 2
e=2.718;
for t=0:.1:5
SC(t)=(E*(1+(e^-t/4)*sin(M*3.14*t)));
end
y = linspace(0,5,50); for y axis from 0 to 50 in the interval of 5
plot(SC(1 to 5) val, t(1 to 5), red dot); syntax for ploting graph
or
y = [5:5:50];
plot(SC,t);
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.