How do I show an image inside a figure?
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Images dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!