Give Matlab commands to plot, on the same figure, the two functions: (5) a. f=3t2 +2t-0.5 b. g=2t cos(t) where the variable t varies from 0 to 10 with step 0.5. Draw the function f in blue 0 and the function g in red *. Give title to your graph as yo

11 次查看(过去 30 天)
Give Matlab commands to plot, on the same figure, the two functions: (5) a. f=3t2 +2t-0.5 b. g=2t cos(t) where the variable t varies from 0 to 10 with step 0.5. Draw the function f in blue 0 and the function g in red *. Give title to your graph as your registration number and label the axes.

回答(1 个)

Ashuftah Shigri
Ashuftah Shigri 2019-10-20
t=0:0.5:10
f=3*t.^2 +2*t.^-0.5;
g=2*t.*cos(t);
plot(f,'b');
hold on
plot(g,'r')

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by