Due to daily fluctuating gas costs your company wishes to ca

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.

Solution

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);

 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(s

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site