Hi everyone
I was wondering how to draw a star's outline using 23 points, so that 13 of them are closer to begining of coordinate system and other 13 further
To start with, my idea is to set 2 points – one closer and second further and then mark the rest using that 2 points from begining but moving an angle.
So i declared matrix full of "0" and then i would like to place all the matrix points on the graph by using for ex. the rotation matrix y = A * X where A = [cos (theta),-sin (theta) sin (theta) cos (theta )], and connect the dots as vectors using plot command. But im quite beginner in Matlab and i have no idea how to put my ideas on code.
I deduced something like that:
M=zeros(2,26)...for K=2:2:13M(:,k)=0,5*A*M(:,k-1) %Point 2
M(:,k+1)=2*A(M(:,k) %Point 3 using Point 2 etc.
plot(...)...end
How to obtain the desired effect? Is that even possible? :/
I would be very grateful for solution. Thanks in advance
Best Answer