I want to plot two data (x1,y1)=(x,y) which x and y determine some points in space and (xx1,yy1)=(12,12) in the same plot in Matlab. I used below code but there is an error and it doesn't wor. Could anyone help?
h = plot(x, y, '.g', 'MarkerSize', 10,12,12,'.r', 'MarkerSize', 15);
The complete code is as below.. I want to show a red big dot at the center of the video:
clear all
close all
l=25;
v=0.05;
dt=1;
r=1;
rr=25;
noise=(2.*pi).*.05;
nn=100;
set(gcf, 'doublebuffer', 'on', 'Color', 'k');
set(gca, 'Visible', 'off');
axis([0 l 0 l])
axis('square')
hold on
vidObj = VideoWriter('vicchemo1.avi');
open(vidObj);
x=rand(nn,1).*l; %first possition