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
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (1)
Ashuftah Shigri
am 20 Okt. 2019
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')
2 Kommentare
Ashuftah Shigri
am 20 Okt. 2019
Use this command for Title and X and Y label
title('Graph Name');
xlabel('x-axis');
ylabel('y-label');
John D'Errico
am 21 Okt. 2019
Please don't just do people's homework questions for them when they have shown no effort to do their own work.
Siehe auch
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!