How do I show an image inside a figure?
Show older comments
So, I'm trying to show an image in the top right corner of the figure, I read the documentation but I still can't understand how to modify the axis of the image, this is the code I'm working on... Thanks!! PD. I'm quite new in matlab
x=300:1:2800;
y=0.0000006212*(x.^3)-0.0028922134*(x.^2)+2.6842821932*x+1733.6232694213; %Función Y
plot(x,y,'black')
hold on
for x=300:5:2800
y=0.0000006212*(x.^3)-0.0028922134*(x.^2)+2.6842821932*x+1733.6232694213; %Función Y
plot(x, y, '.b')
axis([200 2900 -100 2850])
title('Trayectoria del Vehículo')
xlabel('Eje Horizontal (x)')
ylabel('Eje Vertical (y)')
hold on
grid on
drawnow limitrate
end
Accepted Answer
More Answers (0)
Categories
Find more on Images 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!