How can I plot two functions in the same graph?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Wenchen Liu
am 1 Nov. 2022
Bearbeitet: Torsten
am 1 Nov. 2022
I have a code like this:
fplot(@(x) cosh(x))
hold on
p(x) = 0.6671x^3-1.7921x^2+2.7580x-0.089
fplot(@(x) p(x))
hold off
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!
0 Kommentare
Akzeptierte Antwort
Siehe auch
Kategorien
Mehr zu Function Creation 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!