-
counting-sheep
前一段时间我有睡眠问题。我曾经躺在床上,盯着天花板,几个小时。后来有一天,我的外婆建议我试着数羊后,我已经上床睡觉。与往常一样,当我的奶奶暗示的东西,我决定尝试一下。唯一的问题是,有没有羊的时候,我就去睡觉各地进行计数。
创意,因为我,这是不会阻止我。我坐下来写,使得字符,其中#代表羊的网格,而计算机程序。草(或任何你喜欢的,只是没有羊)。为了使计算更有趣,我也决定要数绵羊,而不是单一的成群的牛羊。两只羊在同一个群,如果他们都有一个共同的一面(上,下,左或右)。另外,如果羊A是在同一羊群如羊B和羊B处于同一羊群如羊℃,然后羊A和C是在同一个群。
现在,我已经有了一个新的问题。虽然这些计数羊居然帮我睡着了,我觉得这是非常无聊的。为了解决这个问题,我决定我需要做的计数为我另一台计算机上的程序。然后,我就可以只启动这两个程序之前,我去睡觉,我会睡个好觉,直到没有任何干扰的早晨。我需要你给我写的这个程序。(A while ago I had trouble sleeping. I used to lie awake, staring at the ceiling, for hours and hours. Then one day my grandmother suggested I tried counting sheep after I d gone to bed. As always when my grandmother suggests things, I decided to try it out. The only problem was, there were no sheep around to be counted when I went to bed.
Creative as I am, that wasn t going to stop me. I sat down and wrote a computer program that made a grid of characters, where# represents a sheep, while . is grass (or whatever you like, just not sheep). To make the counting a little more interesting, I also decided I wanted to count flocks of sheep instead of single sheep. Two sheep are in the same flock if they share a common side (up, down, right or left). Also, if sheep A is in the same flock as sheep B, and sheep B is in the same flock as sheep C, then sheeps A and C are in the same flock.
Now, I ve got a new problem. Though counting these sheep actually helps me fall asleep, I find)
- 2014-11-20 16:33:12下载
- 积分:1
-
modulation
用matlab仿真随机信号的调制解调,并绘制调制信号、已调信号、解调信号、输出信号的频谱、功率谱密度,自相关函数(Matlab simulation of random signals with modulation and demodulation, and draw the modulation signal, modulated signal, the demodulated signal, the output signal spectrum, power spectral density, autocorrelation function)
- 2010-11-26 00:14:13下载
- 积分:1
-
list2
基于最小二乘的matlab的wsn的节点算法源程序。用三角测距原理(Based on least-squares algorithm matlab source of wsn nodes. Ranging triangular theory)
- 2009-12-27 12:40:09下载
- 积分:1
-
Communications--Matlab-
MATLAB_SIMULINK通信系统建模与仿真实例精讲,包含DS_CDMA通信系统、IS95前向链路系统、MIMO通信系统、OFDM通信系统、蓝牙调频通信系统(Matlab Simulink Communications system modeling and Simulation examples succinctly, including DS_CDMA communication system, IS95 forward link systems, MIMO communication systems, OFDM communication system, Bluetooth FM communication system)
- 2014-10-15 22:33:33下载
- 积分:1
-
pianzhen
在缝后添加偏振片,输入两个偏振片透光轴与光波振动方向之间的角度,观察干涉现象。(Polarizer is added after the slit to observe the interference phenomenon)
- 2018-12-10 19:06:46下载
- 积分:1
-
magnify
画图时,将图形局部放大,很实用的代码,以前上传过一个m文件,上传错误了,现修正。(When drawing the graphic enlarged, very practical code previously uploaded an m file upload error, now corrected.)
- 2020-07-24 20:28:44下载
- 积分:1
-
In-matlab-simulation-of-svpwm
在matlab上对svpwm进行仿真,其中要注意,仿真算法选择obd23tb,仿真时间为0.06s。(In matlab simulation of svpwm, which pay attention to the simulation algorithm selection obd23tb, simulation time is 0.06s.)
- 2011-06-17 10:22:56下载
- 积分:1
-
cv_fenxi1
matlab 代码,主要用于计算一数据矩阵的标准差,方差,变异系数,话三维曲面图(matlab code, data matrix used to calculate a standard deviation, variance, coefficient of variation, then D surface chart)
- 2013-10-31 19:58:00下载
- 积分:1
-
biaxial-crystal
matlab程序,用来计算非线性光学晶体双轴晶的相位匹配角(for calculation of biaxial crystal phase-matching angles)
- 2020-11-10 21:09:45下载
- 积分:1
-
Matlab
说明: Matlab数值微分的程序,包含下面所列多种微分算法。
MidPoint 中点公式求取导数
ThreePoint 三点法求函数的导数
FivePoint 五点法求函数的导数
DiffBSample 三次样条法求函数的导数
SmartDF 自适应法求函数的导数
CISimpson 辛普森数值微分法法求函数的导数(Matlab numerical differentiation procedure, including a variety of differential algorithm listed below. MidPoint the mid-point derivative formula to strike a three-point method ThreePoint derivative function for a five-point method FivePoint function derivative DiffBSample cubic spline function method of derivative adaptive method SmartDF derivative function CISimpson Simpson numerical differentiation Method derivative function)
- 2009-08-18 16:09:05下载
- 积分:1