필터 지우기
필터 지우기

How to move a point on x-axis

조회 수: 1 (최근 30일)
Anum
Anum 2013년 4월 3일
i have a point at x = 0; and y = 0;
my x axis is from 0 to 40 and y-axis is from 0 to 20.
i want to move a point along the x-axis by a factor of 1.

답변 (1개)

Ahmed A. Selman
Ahmed A. Selman 2013년 4월 3일
Try the following, and modify is needed:
close all
axis ([0 20 0 40])
hold
for x=0:20
plot(x,0,'ro')
pause(0.1); % change (0.1) to larger values to have a slower animation
cla
end

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by