Fortune Telling Collection - Horoscope - How to draw constellation diagram in matlab?
How to draw constellation diagram in matlab?
Function constellation
Graph ('WindowButtonDownFcn', @wbdcb)
ah = axes('DrawMode ',' fast ');
Axis ([110110])
Title ("Draw a constellation")
color 1 = ' brcmkgy ';
num = 1;
Function wbdcb(src, evnt)
if strcmp(get(src,' SelectionType '),' normal ')
Set (src,' pointer',' circle')
Cp = get (ah,' current point');
xinit = cp( 1, 1); yinit = cp( 1,2);
hl = line('XData ',xinit,' YData ',yinit, ...
Mark',' p',' color', color1(num));
set(src,' WindowButtonMotionFcn ',@wbmcb)
set(src,' WindowButtonUpFcn ',@wbucb)
end
Function wbmcb(src, evnt)
Cp = get (ah,' current point');
xdat = [xinit,cp( 1, 1)];
ydat = [yinit,cp( 1,2)];
set(hl,' XData ',xdat,' YData ',ydat); drawnow
end
Function wbucb(src, evnt)
if strcmp(get(src,' SelectionType '),' alt ')
num = num+ 1;
If num> seven
num = 1;
end
Set (src,' pointer',' arrow')
set(src,' WindowButtonMotionFcn ','')
set(src,' WindowButtonUpFcn ','')
other
return
end
end
end
end
- Related articles
- What awards did Gu Ailing win? How good is she?
- 12 which constellation will love each other in the name of friends?
- Aquarius is fragile. Aquarius blx, is everyone here?
- What about Xi 'an Jingui Pharmaceutical Co., Ltd.?
- Constellation 10. 16_ constellation 10 16
- Daya is a sexy girl, so what about the other eight girls?
- A constellation with a delicate mind and a very careful mind.
- Weekly horoscope 12.3- 12.9?
- Who is the artist of eq Company in Hu Haiquan?
- Gemini is the most lonely! Who has the strongest ability to make friends in the twelve constellations?