Implement these expressions in OCTAVE and plot on the same figure, the two functions: f=3t2 +2t-0.5 , g=2t cos(t) where the variable t varies from 0 to 10 with step 0.5.

2 visualizzazioni (ultimi 30 giorni)
Implement these expressions in OCTAVE and plot on the same figure, the two functions: f=3t2 +2t-0.5 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 your name and label the axes

Risposte (1)

Sam Chak
Sam Chak il 6 Nov 2022
I typed exactly the same equations as you knowingly put on the description. But it gives error.
Please check if the equations are correct.
f = 3t2 + 2t - 0.5;
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

Error in connector.internal.fevalMatlab

Error in connector.internal.fevalJSON
g = 2t cos(t);
plot(t, f, t, g)

Community Treasure Hunt

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

Start Hunting!

Translated by