how to draw a symbolic function beside some dots

1 view (last 30 days)
hello I have a question about drawing in matlab. I have a symbolic function {f=exp((3*x^(4/3))/4)} and some dots.{[1,1.1,1.21,1.34,1.48,1.65],[1:0.1:1.5]}. i want to draw both of these two in one figure but when i draw one of them (for example when i draw the symbolic "f" with ezplot) and set the "hold on", I can't draw the dots. it just shows the symbolic function. thanks for your help in advance ;)

Accepted Answer

Sean de Wolski
Sean de Wolski on 21 Jan 2015
Works fine for me. Make sure your limits include the points:
ezplot(@(x)1./x)
hold on
plot(rand(1,10),rand(1,10),'r*')

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!