08 2019 档案

摘要:注意,在设置position属性之前一定要先设置 units,不然会出错,无法显示radiobutton,同时,注意callback函数的特质与fcn的一些特殊规定,比如使用maxvalue,总体而言,matlab功能强大,确实值得一试,也算打了一天这个东西。 注意,如果不设置units,或者设置u 阅读全文
posted @ 2019-08-31 01:26 coolwx 阅读(351) 评论(0) 推荐(0)
摘要:h0 = figure('toolbar','none',... 'position',[200 150 450 250],... 'name','gui_mytry',... 'numbertitle','off'); x = 0:0.5:2*pi; y = sin(x); h = plot (x,y); grid on; hm = uicontrol(h0,'style','text',... 阅读全文
posted @ 2019-08-29 00:24 coolwx 阅读(379) 评论(0) 推荐(0)
摘要:ou are in a maze; seeing n doors in front of you in beginning. You can choose any door you like. The probability for choosing a door is equal for all 阅读全文
posted @ 2019-08-28 00:51 coolwx 阅读(214) 评论(0) 推荐(0)
摘要:注意了,求期望很多时候都是倒推的,而这所谓的倒推主要是指与目标距离之间的“步长大小”,与目标相距为n即为所求,也就是dp【0】 阅读全文
posted @ 2019-08-28 00:40 coolwx 阅读(134) 评论(0) 推荐(0)
摘要:imi learned a new thing about integers, which is - any positive integer greater than 1 can be divided by its divisors. So, he is now playing with this 阅读全文
posted @ 2019-08-28 00:31 coolwx 阅读(174) 评论(0) 推荐(0)
摘要:Given a dice with n sides, you have to find the expected number of times you have to throw that dice to see all its faces at least once. Assume that t 阅读全文
posted @ 2019-08-28 00:15 coolwx 阅读(120) 评论(0) 推荐(0)
摘要:简单的概率dp,我们这里的关键是使用滚动数组,可以使得所谓的“无后效性”更加具体实现 阅读全文
posted @ 2019-08-26 23:46 coolwx 阅读(227) 评论(0) 推荐(0)