MATLAB: Want to plot data where X and Y axis represent a value from one certain point to another certain point with a constant distance say d between points. plotting How plot function is used Best Answer clc ; clear all; point = rand(1,2) ; % a point dx = 0.5 ; dy = 0.5 ; % distance N = 100 ; % number of points points = zeros(N,2) ;points(1,:) = point ;for i = 2:N points(i,:) = points(i-1,:)+[dx dy] ;endplot(points(:,1),points(:,2),'.-r') Related SolutionsMATLAB: Finding Distance Between Each Point (not the diagonal distance) x=XY(:,1); y=XY(:,2);result=abs(x-x.')+abs(y-y.'); MATLAB: Finding an initial point, then skipping a certain amount of points. wantedvalue = x(find(x>2,1,'first') + 5); Related QuestionDeleting rows until a certain pointHow to determine the coordinates of pointsStandard Deviation from a certain pointMarking some points.
Best Answer