How can I plot two functions in the same graph?
9 views (last 30 days)
Show older comments
Wenchen Liu on 1 Nov 2022
I have a code like this:
p(x) = 0.6671x^3-1.7921x^2+2.7580x-0.089
since p(x) is a more complex function. And when I try to run the code, the command shows "Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters,
or other syntax error. To construct matrices, use brackets instead of parentheses."
I don't know how to fix for this. Please me, thank you!
Torsten on 1 Nov 2022
Edited: Torsten on 1 Nov 2022
p = @(x)0.6671*x.^3-1.7921*x.^2+2.7580*x-0.089;
More Answers (1)
Jim Riggs on 1 Nov 2022
Edited: Jim Riggs on 1 Nov 2022
Find more on Title in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!