How to plot both functions in one plot?
Mostra commenti meno recenti
f = inline('sin(x/2)')
g = @(y) 2*cos(y)
3 Commenti
Rik
il 12 Gen 2019
My two questions are:
- Why are you using an inline function?
- What have you tried yourself?
Shraddha Pandey
il 14 Gen 2019
Walter Roberson
il 14 Gen 2019
your f and g assignment are not being used.
Risposte (1)
madhan ravi
il 13 Gen 2019
syms x y
fplot(sin(x/2))
hold on
fplot(2*cos(y))
help fplot
2 Commenti
Shraddha Pandey
il 14 Gen 2019
madhan ravi
il 14 Gen 2019
Looks like you solved the problem by your comment above? Did you read the documentation of fplot?? It belongs to symbolic math toolbox used to define variables symbolically.
Categorie
Scopri di più su Plot Settings in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!