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.

조회 수: 6(최근 30일)
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

답변(1개)

Sam Chak
Sam Chak 2022년 11월 6일
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