How do I show an image inside a figure?
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!