Sorry

This feed does not validate.

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://feeds.feedburner.com/servforu

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Services | Embedded Support   | Reviews | Virtual Technologys</title><description>Services that U need under a tree | Support U at any time 24x7 | Future Technologies to Ur Home | Buyers Guides | Reviews before U spend Money | simple Tips &amp;amp; Tricks</description><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><pubDate>Wed, 13 Mar 2024 05:21:25 -0700</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">140</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://servforu.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>Services that U need under a tree | Support U at any time 24x7 | Future Technologies to Ur Home | Buyers Guides | Reviews before U spend Money | simple Tips &amp;amp; Tricks</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>Matlab-based time synchronization algorithm for wireless sensor networks</title><link>http://servforu.blogspot.com/2014/08/matlab-based-time-synchronization.html</link><category>algorithm</category><category>Code</category><category>download</category><category>FULL</category><category>MATLAB</category><category>matlab alternate</category><category>networks</category><category>Program</category><category>Project</category><category>SIMULATION</category><category>simulator</category><category>synchronisation</category><category>Timer</category><category>Wireless sensor Networks</category><category>WirelessSensorNetworks</category><category>WSN</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Thu, 28 Aug 2014 11:17:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-7771389617782818706</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2. &lt;h4 class="header" style="background-color: white; border-bottom-color: rgb(204, 204, 204); border-style: none none solid; border-width: 0px 0px 1px; color: #999999; font-family: MinionPro-bold; font-weight: normal; line-height: 22px; margin: 24px 0px 12px; outline: none 0px; padding: 0px;"&gt;
  3. &lt;span style="font-size: large;"&gt;Abstract&lt;/span&gt;&lt;/h4&gt;
  4. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  5. &lt;span style="font-size: large;"&gt;This paper proposes a novel distributed time synchronization scheme for wireless sensor networks, which uses max consensus to compensate for clock drift and average consensus to compensate for clock offset. The main idea is to achieve a global synchronization just using local information. The proposed protocol has the advantage of being totally distributed, asynchronous, and robust to packet drop and sensor node failure. Finally, the protocol has been implemented in MATLAB. Through several simulations, we can see that this protocol can reduce clock error to ±10 ticks, adapt to dynamic topology, and be suitable to large-scale applications.&lt;/span&gt;&lt;/div&gt;
  6. &lt;h4 id="sec1" style="background-color: white; border-bottom-color: rgb(204, 204, 204); border-style: none none solid; border-width: 0px 0px 1px; color: #999999; font-family: MinionPro-bold; font-weight: normal; line-height: 22px; margin: 24px 0px 12px; outline: none 0px; padding: 0px;"&gt;
  7. &lt;span style="font-size: large;"&gt;1. Introduction&lt;/span&gt;&lt;/h4&gt;
  8. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  9. &lt;span style="font-size: large;"&gt;As in all distributed systems, time synchronization is very important in wireless sensor networks (WSNs) since the design of many protocols and implementation of applications require precise time, for example, forming an energy-efficient radio schedule, conducting in-network processing (data fusion, data suppression, data reduction, etc.), distributing an acoustic beamforming array, performing acoustic ranging (i.e., measuring the time of flight of sound), logging causal events during system debugging, and querying a distributed database.&lt;/span&gt;&lt;/div&gt;
  10. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  11. &lt;span style="font-size: large;"&gt;Time synchronization is a research area with a very long history. Various mechanisms and algorithms have been proposed and extensively used over the past few decades. However, several unique characteristics of WSNs often preclude the use of the existing synchronization techniques in this domain. First, since the amount of energy available to battery-powered sensors is quite limited, time synchronization must be implemented in an energy-efficient way. Second, some messages need to be exchanged for achieving synchronization while limited bandwidth of wireless communication discourages frequent message exchanges among sensor nodes. Third, the small size of a sensor node imposes restrictions on computational power and storage space. Therefore, traditional synchronization schemes such as network time protocol (NTP) and global positioning system (GPS) are not suitable for WSNs because of complexity and energy issues, cost efficiency, limited size, and so on.&lt;/span&gt;&lt;/div&gt;
  12. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  13. &lt;span style="font-size: large;"&gt;In the context of WSNs, time synchronization refers to the problem of synchronizing clocks across a set of sensor nodes that are connected to one another over a single-hop or multihop wireless networks. To achieve time synchronization in wireless sensor networks, we have to face the following four challenges.&lt;/span&gt;&lt;/div&gt;
  14. &lt;h5 id="sec1.1" style="background-color: white; border: 0px none; color: #999999; font-family: MinionPro-bold; font-weight: normal; line-height: 20px; margin: 0px 0px 12px; outline: none 0px; padding: 0px;"&gt;
  15. &lt;span style="font-size: large;"&gt;1.1. Nondeterministic Delays&lt;/span&gt;&lt;/h5&gt;
  16. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  17. &lt;span style="font-size: large;"&gt;There are many sources of message delivery delays. Kopetz and Ochsenreiter [&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#B1" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;1&lt;/a&gt;] describe the components of message latency, which they call the Reading Error, as being comprised of 4 distinct components plus the local granularity of the nodes clocks. Their work was later expanded by [&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#B2" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;2&lt;/a&gt;] to include transmission and reception time. The most nondeterministic delay is called Access Time, which is incurred in the MAC layer waiting for access to the transmit channel, its orders of magnitude is larger than the synchronization precision required by the network.&lt;/span&gt;&lt;/div&gt;
  18. &lt;h5 id="sec1.2" style="background-color: white; border: 0px none; color: #999999; font-family: MinionPro-bold; font-weight: normal; line-height: 20px; margin: 0px 0px 12px; outline: none 0px; padding: 0px;"&gt;
  19. &lt;span style="font-size: large;"&gt;1.2. Clock Drift&lt;/span&gt;&lt;/h5&gt;
  20. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  21. &lt;span style="font-size: large;"&gt;Manufacturers of crystal oscillators specify a tolerance value in parts per million (PPM) relative the nominal frequency at 25°C, which determines the maximum amount that the skew rate will deviate from 1. For the nodes used in WSNs, the tolerance value is typically in the order of 5 to 20 PPM. If no drift compensation applied, two synchronized nodes will be out of step soon.&lt;/span&gt;&lt;/div&gt;
  22. &lt;h5 id="sec1.3" style="background-color: white; border: 0px none; color: #999999; font-family: MinionPro-bold; font-weight: normal; line-height: 20px; margin: 0px 0px 12px; outline: none 0px; padding: 0px;"&gt;
  23. &lt;span style="font-size: large;"&gt;1.3. Robustness&lt;/span&gt;&lt;/h5&gt;
  24. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  25. &lt;span style="font-size: large;"&gt;Since sensor networks are often left unattended for long periods of time in possibly hostile environments, synchronization schemes should be robust against link and node failures. Mobile nodes can also disrupt routing schemes, and network partitioning may occur.&lt;/span&gt;&lt;/div&gt;
  26. &lt;h5 id="sec1.4" style="background-color: white; border: 0px none; color: #999999; font-family: MinionPro-bold; font-weight: normal; line-height: 20px; margin: 0px 0px 12px; outline: none 0px; padding: 0px;"&gt;
  27. &lt;span style="font-size: large;"&gt;1.4. Convergence Speed&lt;/span&gt;&lt;/h5&gt;
  28. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  29. &lt;span style="font-size: large;"&gt;Nodes in wireless sensor networks always distribute in large scales, one node may get in touch with another by many hops. This increases the difficulty in reducing the convergence speed in time synchronization algorithm design.&lt;/span&gt;&lt;/div&gt;
  30. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  31. &lt;span style="font-size: large;"&gt;Up to now, many protocols have been designed to address this problem. These protocols all have some basic features in common: a simple connectionless messaging protocol, exchange of clock information among nodes, mitigating the effect of nondeterministic factors in message delivery, and processing utilizing different schemes and algorithms, respectively. They can be classified into two types: centralized synchronization and distributed synchronization.&lt;/span&gt;&lt;/div&gt;
  32. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  33. &lt;span style="font-size: large;"&gt;Centralized synchronization protocol, such as RBS [&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#B3" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;4&lt;/a&gt;], TPSN [&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#B2" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;2&lt;/a&gt;], and FTSP [&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#B4" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;3&lt;/a&gt;], usually has fast convergence speed and little synchronization error. This kind of protocol needs a physical node acting as the whole network’s reference clock, so it has to divide the nodes into different roles, for example, client node and beacon node in RBS. If the node with the special role, such as beacon node in RBS, is out of work, the protocol will suffer from big damage. To deal with the WSNs’ dynamic topology, centralized synchronization protocol is often designed with complexity logic. Another disadvantage of centralized synchronization protocol is that synchronization error grows with the increase of network hops.&lt;/span&gt;&lt;/div&gt;
  34. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  35. &lt;span style="font-size: large;"&gt;Distributed synchronization protocol, such as TDP [&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#B5" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;5&lt;/a&gt;]/GCS [&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#B6" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;6&lt;/a&gt;]/RFA [&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#B7" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;7&lt;/a&gt;]/ATS [&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#B8" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;8&lt;/a&gt;]/CCS [&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#B9" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;9&lt;/a&gt;], can use local information to achieve the whole network synchronization. This kind of protocol can easily adapt to WSNs’ dynamic topology property with lite computation. Currently, the disadvantage of distributed synchronization protocol is that the convergence speed may be a bit slow, relating to the network topology.&lt;/span&gt;&lt;/div&gt;
  36. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  37. &lt;span style="font-size: large;"&gt;This paper describes a new distributed protocol for time synchronization in wireless sensor networks called time synchronization using max and average consensus protocol (TSMA). We adapt a number of techniques to take up the challenges time synchronization has in WSNs. To eliminate the nondeterministic delays, we make use of MAC layer timestamp technique. To compensate for the clock drift, we adapt max consensus protocol, and we use average consensus protocol to compensate for the clock offset. This protocol has the advantages of being computationally light, scalable, asynchronous, robust to node and link failure, and it does not require a master or controlling node.&lt;/span&gt;&lt;/div&gt;
  38. &lt;span style="font-size: large;"&gt;&lt;span class="end-abs" style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin: 0px; outline: none 0px; padding: 0px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  39. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  40. &lt;span style="font-size: large;"&gt;The rest of the paper is organized as follows. Section&amp;nbsp;&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#sec2" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;2&lt;/a&gt;&amp;nbsp;summarizes the related work. Section&amp;nbsp;&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#sec3" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;3&lt;/a&gt;&amp;nbsp;introduces some mathematical tools and definitions that will be instrumental for the proof of convergence of the proposed TSMA algorithm. Section&amp;nbsp;&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#sec4" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;4&lt;/a&gt;&amp;nbsp;introduces a model for the clock dynamics and formally defines the synchronization objectives, while Section&amp;nbsp;&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#sec5" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;5&lt;/a&gt;&amp;nbsp;presents the TSMA algorithm in details. This is followed by MATLAB simulations in Section&amp;nbsp;&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#sec6" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;6&lt;/a&gt;. Finally, Section&amp;nbsp;&lt;a href="http://www.hindawi.com/journals/ijdsn/2013/192128/#sec7" style="border: 0px none; color: #418b34; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none;"&gt;7&lt;/a&gt;&amp;nbsp;briefly summarizes the results obtained and proposes potential research directions.&lt;/span&gt;&lt;/div&gt;
  41. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  42. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  43. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  44. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  45. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  46. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  47. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  48. &lt;span style="font-size: large;"&gt;matlab code&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  49. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  50. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  51. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  52. &lt;span style="font-size: large;"&gt;#######################################&lt;/span&gt;&lt;/div&gt;
  53. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  54. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  55. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  56. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  57. &lt;div style="background-color: white; border: 0px none; font-family: MinionPro-Regular, Times; line-height: 20px; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  58. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  59. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  60. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;function varargout=prowler(command, varargin)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  61. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  62. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% &amp;nbsp;prowler - PROBABILISTIC WIRELESS NETWORK &amp;nbsp;SIMULATOR - Main simulation program&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  63. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  64. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;%&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  65. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  66. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% &amp;nbsp;Command line options:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  67. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  68. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% &amp;nbsp; &amp;nbsp;initialize: prowler('Init')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  69. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  70. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% &amp;nbsp; &amp;nbsp;simulate: &amp;nbsp; prowler('StartSimulation')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  71. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  72. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;%&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  73. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  74. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% A graphical user interface can be invoked by typing prowler.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  75. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  76. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;%&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  77. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  78. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% See also: radio_channel, sim_params, demo_application, simstats, demo_opt&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  79. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  80. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  81. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  82. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% ***&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  83. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  84. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% ***&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt; Copyright 2002, Vanderbilt University. All rights reserved.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  85. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  86. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% ***&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  87. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  88. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% *** &amp;nbsp; &amp;nbsp;This program is distributed in the hope that it will be useful,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  89. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  90. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% *** &amp;nbsp; &amp;nbsp;but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  91. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  92. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% *** &amp;nbsp; &amp;nbsp;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  93. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  94. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% ***&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  95. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  96. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% ***&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  97. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  98. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  99. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  100. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% Written by Gyula Simon, gyula.simon@vanderbilt.edu&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  101. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  102. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% Last modified: Jan 28, 2004 &amp;nbsp;by GYS&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  103. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  104. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  105. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  106. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  107. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  108. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;persistent event_Q &amp;nbsp;event_Q_ix topology mote_IDs topology_update_stamp&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  109. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  110. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;persistent radio app_name &amp;nbsp;sim_t &amp;nbsp;real_sim_T&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  111. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  112. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;global global_event_Q&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  113. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  114. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  115. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  116. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  117. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  118. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if nargin&amp;lt;1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  119. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  120. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; command='OpenGui';&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  121. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  122. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  123. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  124. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if strcmpi(command, 'Init')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  125. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  126. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; sim_t=0;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  127. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  128. &lt;br /&gt;&lt;/div&gt;
  129. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  130. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; prowler('RefreshApplicationAndRadioInfo');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  131. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  132. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; SetApplicationParams(app_name); &amp;nbsp;% if exists _params file, set the default parameters&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  133. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  134. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; prowler('RefreshTopologyInfo', 'init');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  135. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  136. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; prowler('show_animation');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  137. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  138. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; prowler('show_events');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  139. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  140. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  141. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  142. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  143. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  144. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; prowparams('select_active_params') &amp;nbsp;% if parameters window is open, enable/disable radio specific UICs&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  145. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  146. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  147. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  148. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; event_Q=[]; global_event_Q=[];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  149. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  150. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; prowler('InsertEvents2Q', make_event(0, 'Init_Radio', -999));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  151. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  152. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; for mote_ID=mote_IDs&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  153. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  154. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prowler('InsertEvents2Q', make_event(0, 'Init_Application', mote_ID));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  155. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  156. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  157. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  158. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; event_Q_ix=1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  159. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  160. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; print_event(['Application ''' app_name ''' initialized...'])&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  161. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  162. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; plot_event('init')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  163. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  164. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; AdjustTipButton(app_name);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  165. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  166. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  167. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  168. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; prowler('show_LEDs')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  169. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  170. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; real_sim_T=0; % measure simulation time&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  171. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  172. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'StartSimulation')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  173. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  174. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; sim_t=0;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  175. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  176. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % housekeeping A1: remove those events from &amp;nbsp;global_event_Q which were added when simulation was suspended (by stop button)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  177. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  178. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % see housekeeping A2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  179. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  180. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; NUM_EVENTS_STOP=1000; % max number of events shown when stopped&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  181. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  182. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; sim_params('set', 'SIMULATION_RUNNING',1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  183. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  184. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if length(global_event_Q)&amp;gt;0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  185. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  186. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ix_end=length(global_event_Q)-length(event_Q)+event_Q_ix-1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  187. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  188. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print_event(global_event_Q(max(1,end-NUM_EVENTS_STOP):ix_end))&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  189. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  190. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; global_event_Q=global_event_Q(1:end-length(event_Q));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  191. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  192. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  193. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  194. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % simulation&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  195. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  196. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % disable buttons and pulldown menus&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  197. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  198. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  199. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  200. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~isempty(h_fig)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  201. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  202. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a=guihandles(h_fig);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  203. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  204. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set([a.Application_def, a.Radio_def, a.Simulation_start, a.Simulation_continue], 'enable', 'off')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  205. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  206. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  207. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  208. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; tic; last_draw=clock; last_print=clock;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  209. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  210. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; while sim_t&amp;lt;sim_params('get', 'STOP_SIM_TIME') &amp;amp; event_Q_ix &amp;lt;= length(event_Q) &amp;amp; sim_params('get','SIMULATION_RUNNING')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  211. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  212. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  213. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  214. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; event=event_Q(event_Q_ix);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  215. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  216. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print_event(event)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  217. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  218. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plot_event(event)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  219. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  220. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; last_sim_t=sim_t;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  221. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  222. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [sim_t, event_name, ID, data]=get_event(event);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  223. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  224. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if last_sim_t~=sim_t % new time instant, perhaps screen update necessary&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  225. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  226. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; upd=sim_params('get', 'ANIMATE');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  227. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  228. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if upd==1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  229. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  230. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drawnow, last_draw=clock;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  231. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  232. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else % slow update or no update&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  233. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  234. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if etime(clock, last_draw)&amp;gt;1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  235. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  236. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drawnow, last_draw=clock;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  237. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  238. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  239. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  240. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  241. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  242. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  243. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  244. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  245. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  246. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if etime(clock, last_print)&amp;gt;1, % this is to prevent gui from freezing when no animation is done&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  247. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  248. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; last_print=clock;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  249. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  250. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ~sim_params('get', 'PRINT_EVENTS'), print_event(make_event(sim_t, 'Simulation running...',0), 0, 0), end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  251. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  252. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  253. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  254. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  255. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  256. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % decide to whom the event should be sent&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  257. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  258. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch event_name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  259. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  260. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case {'Init_Radio', 'Channel_Request', 'Channel_Idle_Check', ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  261. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  262. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Packet_Receive_Start', 'Packet_Receive_End', ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  263. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  264. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Packet_Transmit_Start', 'Packet_Transmit_End'}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  265. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  266. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % event to radio layer&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  267. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  268. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; feval(radio, event);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  269. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  270. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case {'Init_Application', 'Packet_Sent', 'Packet_Received', ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  271. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  272. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Collided_Packet_Received', 'Clock_Tick'}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  273. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  274. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % event to application layer&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  275. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  276. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; feval([app_name, '_application'], event);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  277. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  278. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; otherwise&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  279. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  280. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error(['Unknown event: ' event_name])&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  281. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  282. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  283. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  284. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; event_Q_ix=event_Q_ix+1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  285. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  286. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  287. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  288. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end % while&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  289. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  290. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; try % try provided for compatibility reasons, older applications cannot handle the following events&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  291. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  292. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if sim_params('get','SIMULATION_RUNNING') % event queue empty&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  293. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  294. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for mote_ID=mote_IDs&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  295. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  296. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; feval([app_name, '_application'], make_event(0, 'Application_Finished', mote_ID));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  297. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  298. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  299. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  300. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  301. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  302. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for mote_ID=mote_IDs&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  303. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  304. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; feval([app_name, '_application'], make_event(0, 'Application_Stopped', mote_ID));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  305. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  306. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  307. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  308. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  309. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  310. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; catch&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  311. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  312. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  313. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  314. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  315. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  316. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; sim_params('set', 'SIMULATION_RUNNING',0);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  317. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  318. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; real_sim_T=real_sim_T+toc;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  319. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  320. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % housekeeping A2: add events to global_event_Q which were not purged from event_Q by the time&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  321. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  322. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % simulation was stopped&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  323. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  324. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % see housekeeping A1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  325. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  326. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; global_event_Q=[global_event_Q, event_Q];&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  327. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  328. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; highlight_offset=length(event_Q)-event_Q_ix; % event monitor highlights the next event to be executed&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  329. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  330. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  331. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  332. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; print_event(global_event_Q(max(1,end-NUM_EVENTS_STOP):end)) % update event list with a longer list&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  333. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  334. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; print_event(['Stopped. (SimTime=' sprintf('%1.1f', real_sim_T) 's)'], highlight_offset+1)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  335. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  336. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; drawnow;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  337. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  338. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % enable pulldown menus&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  339. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  340. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  341. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  342. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~isempty(h_fig)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  343. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  344. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a=guihandles(h_fig);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  345. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  346. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set([a.Application_def, a.Radio_def, a.Simulation_start, a.Simulation_continue], 'enable', 'on')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  347. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  348. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  349. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  350. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  351. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  352. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'StopSimulation')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  353. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  354. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; sim_params('set','SIMULATION_RUNNING',0);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  355. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  356. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % enable pulldown menus&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  357. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  358. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  359. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  360. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~isempty(h_fig)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  361. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  362. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a=guihandles(h_fig);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  363. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  364. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set([a.Application_def, a.Radio_def, a.Simulation_start, a.Simulation_continue], 'enable', 'on')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  365. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  366. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  367. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  368. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  369. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  370. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'InsertEvents2Q')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  371. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  372. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; events=varargin{1};&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  373. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  374. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; [event_Q, event_Q_ix]=insert_events(event_Q,event_Q_ix,events,sim_t);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  375. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  376. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  377. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  378. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'GetRadioName')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  379. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  380. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; varargout={radio};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  381. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  382. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'GetAnimationName')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  383. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  384. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; varargout={[app_name '_animation']};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  385. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  386. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'GetTopologyInfo')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  387. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  388. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; varargout={topology, mote_IDs, topology_update_stamp};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  389. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  390. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  391. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  392. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'RefreshApplicationAndRadioInfo')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  393. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  394. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; app_name=sim_params('get', 'APP_NAME');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  395. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  396. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; radio=sim_params('get', 'RADIO_NAME');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  397. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  398. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  399. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  400. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; application_name=[app_name '_application']; &amp;nbsp; &amp;nbsp; &amp;nbsp;% application is implemented in this m-file&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  401. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  402. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; topology_name &amp;nbsp; =[app_name '_topology']; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % topology and ID info for the application&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  403. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  404. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; animation_name &amp;nbsp;=[app_name '_animation']; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% topology and ID info for the application&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  405. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  406. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % check names&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  407. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  408. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~exist(application_name, 'file'), error(['Application file '' ' &amp;nbsp;application_name '''.m is missing']); end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  409. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  410. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~exist(topology_name, 'file'), &amp;nbsp; &amp;nbsp;error(['Topology file '' ' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;topology_name '''.m is missing']); end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  411. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  412. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~exist(animation_name, 'file'), &amp;nbsp; error(['Animation file '' ' &amp;nbsp; &amp;nbsp; &amp;nbsp;animation_name '''.m is missing']); end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  413. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  414. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~exist(radio, 'file'), &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;error(['Radio definition file '' ' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;radio '''.m is missing']); end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  415. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  416. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  417. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  418. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  419. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  420. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'RefreshTopologyInfo')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  421. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  422. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; topology_name=[app_name '_topology']; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % topology and ID info for the application&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  423. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  424. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if nargin &amp;gt;1; % init&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  425. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  426. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; topology_update_stamp=0; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  427. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  428. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [topology, mote_IDs]=feval(topology_name, 'init');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  429. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  430. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  431. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  432. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [topology, mote_IDs]=feval(topology_name);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  433. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  434. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  435. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  436. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; topology_update_stamp=topology_update_stamp+1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  437. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  438. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if &amp;nbsp;topology_update_stamp&amp;gt;1 &amp;nbsp; % not init&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  439. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  440. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; radio=sim_params('get', 'RADIO_NAME');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  441. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  442. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; feval(radio, 'Prowler!RefreshTopology'); &amp;nbsp;% notify the radio channel, it should update its internal info&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  443. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  444. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  445. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  446. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'TextMessage')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  447. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  448. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; plot_event('TextMessage', varargin{1}, varargin{2})&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  449. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  450. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'LED')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  451. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  452. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; plot_event(command, varargin{1}, varargin{2})&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  453. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  454. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  455. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  456. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif findstr(command, 'Draw')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  457. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  458. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if findstr(command, 'Line')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  459. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  460. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plot_line('Line', varargin{:})&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  461. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  462. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; elseif findstr(command, 'Arrow')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  463. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  464. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plot_line('Arrow', varargin{:})&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  465. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  466. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; elseif findstr(command, 'Delete')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  467. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  468. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plot_line('Delete', varargin{:})&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  469. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  470. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  471. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  472. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  473. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  474. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'Redraw')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  475. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  476. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; plot_event(command)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  477. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  478. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  479. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  480. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'Gui_Mouse_Axes_Click') &amp;nbsp;% message from gui; can be used to update topology&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  481. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  482. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; position=varargin{1}; position=position(1,1:2);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  483. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  484. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; try&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  485. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  486. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; feval([app_name '_topology'], 'Refresh', position);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  487. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  488. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prowler('RefreshTopologyInfo');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  489. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  490. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prowler('Redraw')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  491. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  492. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  493. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  494. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'GuiMouseMoteClick')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  495. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  496. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_clicked_mote=varargin{1};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  497. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  498. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; clicked_mote_ID=get(h_clicked_mote, 'userdata');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  499. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  500. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; feval([app_name, '_application'], make_event(sim_t, 'GuiInfoRequest', clicked_mote_ID));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  501. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  502. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  503. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  504. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  505. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  506. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'show_LEDs')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  507. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  508. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  509. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  510. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; ch=allchild(h_fig);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  511. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  512. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_cb=findobj(ch, 'flat', 'tag', 'showLEDs');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  513. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  514. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; show_LEDs=get(h_cb, 'value');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  515. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  516. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % find all LED related staff on plot&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  517. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  518. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; %h_ax=findobj(ch, 'flat', 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  519. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  520. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_ax=findall(0, 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  521. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  522. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % &amp;nbsp; &amp;nbsp; h_line=findobj(allchild(h_ax), 'flat', 'type', 'line');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  523. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  524. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % &amp;nbsp; &amp;nbsp; h_LEDs=[]; h_frames=[]; i=1; found=1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  525. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  526. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % &amp;nbsp; &amp;nbsp; while ~isempty(found)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  527. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  528. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; found=[ findobj(h_line, 'flat', 'tag', ['rLED' num2str(i)]); ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  529. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  530. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; findobj(h_line, 'flat', 'tag', ['gLED' num2str(i)]); ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  531. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  532. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; findobj(h_line, 'flat', 'tag', ['yLED' num2str(i)]); ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  533. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  534. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; findobj(h_line, 'flat', 'tag', ['LED_frame' num2str(i)])];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  535. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  536. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_LEDs=[h_LEDs; found]; i=i+1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  537. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  538. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  539. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  540. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % &amp;nbsp; &amp;nbsp; h_LEDs &amp;nbsp;=[findobj(h_ax, 'tag', 'rLED'); findobj(h_ax, 'tag', 'gLED'); findobj(h_ax, 'tag', 'yLED')];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  541. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  542. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % &amp;nbsp; &amp;nbsp; h_frames=findobj(h_ax, 'tag', 'LED_frame');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  543. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  544. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_LEDs=findobj(allchild(h_ax), 'flat', &amp;nbsp;'buttondownfcn', '3.1415926;');&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  545. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  546. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  547. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  548. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if show_LEDs&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  549. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  550. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set([h_LEDs], 'visible', 'on')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  551. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  552. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  553. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  554. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set([h_LEDs], 'visible', 'off')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  555. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  556. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  557. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  558. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  559. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  560. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  561. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  562. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'show_distances')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  563. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  564. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  565. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  566. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; ch=allchild(h_fig);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  567. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  568. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % h_ax=findobj(ch, 'flat', 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  569. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  570. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_ax=findall(0, 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  571. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  572. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_cb=findobj(ch, 'flat', 'tag', 'show_distances');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  573. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  574. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if nargin &amp;gt; 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  575. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  576. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; show=varargin{1};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  577. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  578. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_cb, 'value', show);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  579. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  580. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  581. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  582. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; show=get(h_cb, 'value');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  583. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  584. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  585. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  586. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if show&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  587. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  588. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_ax, 'xtickmode', 'auto')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  589. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  590. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_ax, 'ytickmode', 'auto')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  591. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  592. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; grid(h_ax, 'on')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  593. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  594. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  595. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  596. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_ax, 'xtickmode', 'manual')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  597. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  598. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_ax, 'ytickmode', 'manual')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  599. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  600. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_ax, 'xtick', [])&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  601. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  602. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_ax, 'ytick', [])&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  603. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  604. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  605. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  606. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; grid(h_ax, 'off')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  607. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  608. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  609. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  610. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  611. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  612. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  613. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  614. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'show_animation')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  615. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  616. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  617. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  618. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; ch=allchild(h_fig);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  619. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  620. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h=findobj(ch, 'flat', 'tag', 'show_animation');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  621. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  622. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if nargin &amp;gt;1 % value provided&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  623. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  624. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anim=varargin{1};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  625. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  626. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if anim==0; anim=3; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  627. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  628. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h,'value', anim);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  629. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  630. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sim_params('set_from_gui', 'ANIMATE', mod(anim,3));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  631. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  632. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  633. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  634. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anim=get(h,'value');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  635. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  636. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sim_params('set_from_gui', 'ANIMATE', mod(anim,3));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  637. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  638. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  639. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  640. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  641. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  642. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'show_events')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  643. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  644. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  645. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  646. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; ch=allchild(h_fig);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  647. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  648. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h=findobj(ch, 'flat', 'tag', 'show_events');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  649. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  650. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  651. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  652. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if nargin &amp;gt;1 % value provided&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  653. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  654. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; shw=varargin{1};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  655. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  656. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h,'value', shw);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  657. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  658. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sim_params('set_from_gui', 'PRINT_EVENTS', shw);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  659. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  660. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  661. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  662. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sim_params('set_from_gui', 'PRINT_EVENTS', get(h,'value'));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  663. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  664. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  665. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  666. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  667. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  668. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'ShowApplicationInfo')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  669. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  670. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; infofile=AdjustTipButton(app_name);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  671. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  672. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~isempty(infofile)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  673. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  674. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; feval(infofile);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  675. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  676. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  677. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  678. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  679. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  680. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'ShowApplicationParams')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  681. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  682. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; appparamw('init', app_name)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  683. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  684. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  685. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  686. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'OpenGUI')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  687. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  688. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; simgui;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  689. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  690. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'CloseGUI')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  691. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  692. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  693. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  694. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; delete(h_fig)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  695. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  696. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'paramgui_fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  697. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  698. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; close(h_fig)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  699. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  700. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Prowler_External_Display_fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  701. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  702. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; delete(h_fig)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  703. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  704. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  705. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  706. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'SwitchDisplay')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  707. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  708. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  709. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  710. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_cb=findobj(allchild(h_fig), 'flat', 'tag', 'external_display');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  711. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  712. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if nargin&amp;gt;1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  713. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  714. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mode=varargin{1};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  715. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  716. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if strcmp('mode', 'out')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  717. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  718. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_cb, 'value', 1)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  719. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  720. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  721. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  722. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_cb, 'value', 0)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  723. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  724. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  725. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  726. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  727. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  728. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if get(h_cb, 'value')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  729. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  730. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mode='out';&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  731. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  732. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  733. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  734. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mode='in';&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  735. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  736. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  737. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  738. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; SwitchDisplay(mode);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  739. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  740. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  741. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  742. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'GetDisplayHandle')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  743. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  744. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  745. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  746. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_ax=findall(h_fig, 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  747. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  748. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if isempty(h_ax)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  749. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  750. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_fig=findobj(allchild(0), 'flat', 'tag', 'Prowler_External_Display_fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  751. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  752. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_ax=findall(h_fig, 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  753. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  754. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  755. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  756. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; varargout={h_ax};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  757. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  758. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  759. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  760. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% 'PrintEvent' command is added by LK and YZ &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  761. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  762. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'PrintEvent')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  763. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  764. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; print_event(varargin{1});&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  765. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  766. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  767. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  768. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;elseif strcmpi(command, 'version')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  769. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  770. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % CURRENT VERSION NUMBER&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  771. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  772. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; varargout={'1.25'};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  773. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  774. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  775. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  776. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; error(['Unknown command: ' command])&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  777. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  778. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  779. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  780. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  781. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  782. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  783. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  784. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  785. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  786. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  787. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  788. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;function [new_Q, new_Q_ix]=insert_events(old_Q,old_Q_ix,events,last_t);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  789. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  790. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;global global_event_Q&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  791. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  792. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  793. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  794. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;PURGE_LIMIT=50;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  795. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  796. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  797. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  798. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;new_Q=[old_Q, events];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  799. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  800. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  801. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  802. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;L=length(new_Q);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  803. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  804. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;t=zeros(1,L);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  805. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  806. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;for i=1:L&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  807. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  808. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; t(i)=new_Q(i).time;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  809. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  810. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  811. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  812. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;[tmp,ix]=sort(t);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  813. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  814. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  815. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  816. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;ix1=find(t(ix)&amp;gt;=last_t);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  817. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  818. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;purge_Num=length(ix)-length(ix1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  819. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  820. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if purge_Num&amp;gt;PURGE_LIMIT; PURGE=1; else PURGE=0; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  821. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  822. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if PURGE % purge old events from Q&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  823. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  824. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; global_event_Q=[global_event_Q, old_Q(1:purge_Num)];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  825. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  826. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; new_Q=new_Q(ix(ix1));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  827. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  828. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; new_Q_ix=old_Q_ix-purge_Num;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  829. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  830. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  831. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  832. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; new_Q=new_Q(ix);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  833. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  834. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; new_Q_ix=old_Q_ix;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  835. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  836. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  837. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  838. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  839. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  840. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  841. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  842. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  843. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  844. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;function print_event(e, offset,force)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  845. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  846. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;persistent h_list ct str&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  847. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  848. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if (~sim_params('get', 'PRINT_EVENTS'))&amp;amp;sim_params('get', 'SIMULATION_RUNNING')&amp;amp;nargin&amp;lt;3, return, end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  849. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  850. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if nargin&amp;lt;2, offset=0; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  851. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  852. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if nargin&amp;gt;2, ct=100; end % force event update&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  853. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  854. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;MAX_LINES=100;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  855. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  856. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if ischar(e) % init or finish&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  857. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  858. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if findstr(e, 'init')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  859. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  860. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; clear=1; ct=100;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  861. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  862. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_list=findall(0, 'tag', 'message_list');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  863. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  864. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; disp_str=e; list_str={e};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  865. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  866. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %plot_event('init')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  867. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  868. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; elseif findstr(e, 'Running')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  869. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  870. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; clear=1; ct=100;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  871. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  872. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; disp_str=e; list_str={e};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  873. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  874. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else % finish&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  875. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  876. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; clear=0; MAX_LINES=inf; % prevent list truncation&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  877. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  878. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; disp_str=e; list_str={e}; ct=100; % ensure to update listbox&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  879. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  880. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  881. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  882. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  883. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  884. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; len_e=length(e);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  885. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  886. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if len_e&amp;gt;1,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  887. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  888. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; clear=1;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  889. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  890. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list_str=[];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  891. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  892. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  893. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  894. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; clear=0;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  895. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  896. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list_str=[];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  897. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  898. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  899. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  900. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  901. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  902. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; for ev_ix=1:len_e&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  903. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  904. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [sim_t, event, ID, data]=get_event(e(ev_ix));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  905. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  906. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sim_t_sec=sim_t*sim_params('get', 'BIT_TIME');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  907. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  908. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list_stri=sprintf('%7d %6.2f &amp;nbsp;%-26s %5d', floor(sim_t), sim_t_sec, event, ID);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  909. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  910. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list_str=[list_str; {list_stri}];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  911. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  912. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  913. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  914. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if len_e &amp;gt;1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  915. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  916. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; disp_str=[]; ct=100;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  917. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  918. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  919. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  920. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; disp_str=sprintf('t:%7d (%6.2fs), %-27s ID:%3d', floor(sim_t), sim_t_sec, [event ','], ID);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  921. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  922. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %plot_event(e)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  923. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  924. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  925. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  926. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  927. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  928. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  929. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  930. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if ~isempty(h_list)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  931. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  932. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; %str=get(h_list, 'string');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  933. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  934. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if clear&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  935. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  936. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; str=list_str;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  937. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  938. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  939. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  940. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if length(str)&amp;gt;MAX_LINES-1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  941. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  942. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; str=[str(end-MAX_LINES+1:end); list_str];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  943. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  944. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  945. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  946. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; str=[str; list_str];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  947. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  948. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  949. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  950. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  951. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  952. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ct&amp;gt;10 % do not update list too frequently; it's too slow&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  953. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  954. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_list, 'string', &amp;nbsp;str, 'listboxtop', max(1, length(str)-1), 'value', length(str)-offset)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  955. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  956. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ct=0;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  957. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  958. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  959. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  960. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; ct=ct+1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  961. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  962. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  963. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  964. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; % disp(disp_str)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  965. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  966. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  967. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  968. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  969. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  970. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  971. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  972. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  973. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  974. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;function plot_event(varargin)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  975. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  976. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;persistent h hr hg hy ht hf ax updatetime&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  977. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  978. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;upd=sim_params('get', 'ANIMATE');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  979. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  980. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if ischar(varargin{1}) % command&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  981. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  982. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; cmd=varargin{1};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  983. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  984. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~upd&amp;amp;~strcmp(cmd, 'init')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  985. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  986. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  987. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  988. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  989. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  990. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  991. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  992. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~upd&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  993. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  994. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  995. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  996. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  997. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  998. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; cmd='update';&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  999. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1000. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; event_struct=varargin{1};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1001. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1002. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; [t, event, ID, data]=get_event(event_struct);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1003. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1004. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1005. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1006. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;[topology, mote_IDs]=prowler('GetTopologyInfo');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1007. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1008. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;drw=0; % init draw update flag&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1009. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1010. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;switch cmd&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1011. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1012. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;case 'Refresh' &amp;nbsp;% refresh handles which could be changed when display changed&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1013. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1014. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; ax=findall(0, 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1015. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1016. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; ch=allchild(ax);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1017. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1018. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; lines=findobj(ch, 'flat', 'type', 'line');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1019. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1020. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; texts=findobj(ch, 'flat', 'type', 'text');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1021. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1022. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; for i=1:length(h)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1023. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1024. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h(i) =findobj(lines, 'flat', 'tag', ['DisplayObjMote' num2str(i)]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1025. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1026. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hr(i)=findobj(lines, 'flat', 'tag', ['rLED' num2str(i)]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1027. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1028. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hg(i)=findobj(lines, 'flat', 'tag', ['gLED' num2str(i)]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1029. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1030. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hy(i)=findobj(lines, 'flat', 'tag', ['yLED' num2str(i)]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1031. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1032. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ht(i)=findobj(texts, 'flat', 'tag', ['DisplayObjTxt' num2str(i)]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1033. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1034. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hf(i)=findobj(lines, 'flat', 'tag', ['LED_frame' num2str(i)]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1035. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1036. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1037. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1038. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; plot_line('refresh')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1039. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1040. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1041. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1042. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1043. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1044. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;case {'init', 'Redraw'}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1045. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1046. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1047. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1048. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; ax=findall(0, 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1049. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1050. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~isempty(ax)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1051. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1052. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mx=max(topology(:,1)); mx=min(topology(:,1));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1053. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1054. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; My=max(topology(:,2)); my=min(topology(:,2));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1055. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1056. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1057. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1058. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if Mx-mx&amp;lt;1, Mx=Mx+.5; mx=mx-.5; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1059. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1060. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if My-my&amp;lt;1, My=My+.5; my=my-.5; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1061. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1062. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %sc=0.001; mx=mx-sc*abs(mx); my=my-sc*abs(my); Mx=Mx+sc*abs(Mx); My=My+sc*abs(My);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1063. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1064. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deltaX=Mx-mx;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1065. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1066. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deltaY=My-my;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1067. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1068. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DX=deltaX/50; DY=-deltaY/50;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1069. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1070. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1071. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1072. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if strcmp(cmd, 'init')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1073. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1074. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; updatetime=clock;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1075. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1076. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delete(allchild(ax));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1077. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1078. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(ax, 'nextplot', 'add')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1079. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1080. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; axis(ax, [mx-1*DX Mx+6*DX my+4*DY My-3*DY])&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1081. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1082. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h=[]; hr=[]; hg=[]; hy=[]; ht=[]; hf=[];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1083. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1084. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for i=1:length(mote_IDs)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1085. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1086. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PX=topology(i, 1); PY=topology(i, 2);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1087. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1088. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h(i)=plot(PX,PY,'.', 'parent', ax, ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1089. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1090. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'userdata', mote_IDs(i), 'buttondownfcn', 'prowler(''GuiMouseMoteClick'', gcbo)', 'tag', ['DisplayObjMote' num2str(i)]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1091. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1092. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hr(i)=plot(PX+1.5*DX,PY+DY,'.r', 'parent', ax, 'tag', ['rLED' num2str(i)], 'userdata', [1 &amp;nbsp; 0 &amp;nbsp; 0]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1093. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1094. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hg(i)=plot(PX+2.5*DX,PY+DY,'.g', 'parent', ax, 'tag', ['gLED' num2str(i)], 'userdata', [0 &amp;nbsp; 1 &amp;nbsp; 0]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1095. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1096. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hy(i)=plot(PX+3.5*DX,PY+DY,'.y', 'parent', ax, 'tag', ['yLED' num2str(i)], 'userdata', [1 &amp;nbsp; 0.6 0]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1097. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1098. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hf(i)=line(PX+[.7*DX, .7*DX 4*DX 4*DX .7*DX],...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1099. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1100. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PY+[DY/2 DY*3/2 DY*3/2 DY/2 DY/2], 'parent', ax, 'tag', ['LED_frame' num2str(i)]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1101. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1102. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ht(i)=text(PX+.5*DX,PY-DY,' ', 'FontSize', 8, 'clipping', 'on', 'parent', ax, 'tag', ['DisplayObjTxt' num2str(i)]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1103. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1104. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1105. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1106. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set([hr hg hy], 'markersize', 6, 'color', [1 1 1])&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1107. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1108. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set([hr hg hy hf], 'buttondownfcn', '3.1415926;', 'hittest', 'off'); % search purposes&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1109. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1110. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plot_line('init')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1111. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1112. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drawnow&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1113. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1114. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1115. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1116. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for i=1:length(mote_IDs)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1117. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1118. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PX=topology(i, 1); PY=topology(i, 2);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1119. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1120. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h(i), 'xdata', PX, 'ydata', PY);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1121. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1122. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(hr(i), 'xdata', PX+1.5*DX, 'ydata', PY+DY);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1123. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1124. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(hg(i), 'xdata', PX+2.5*DX, 'ydata', PY+DY);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1125. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1126. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(hy(i), 'xdata', PX+3.5*DX, 'ydata', PY+DY);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1127. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1128. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(hf(i), 'xdata', PX+[.7*DX, .7*DX 4*DX 4*DX .7*DX], ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1129. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1130. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ydata', &amp;nbsp;PY+[DY/2 DY*3/2 DY*3/2 DY/2 DY/2]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1131. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1132. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(ht(i), 'position', [PX+.5*DX,PY-DY]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1133. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1134. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1135. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1136. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plot_line('redraw')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1137. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1138. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1139. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1140. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drw=1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1141. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1142. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1143. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1144. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;case 'update'&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1145. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1146. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~isempty(ax)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1147. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1148. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ix=find(mote_IDs==ID);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1149. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1150. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a=feval(prowler('GetAnimationName'));&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1151. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1152. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for i=1:length(a)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1153. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1154. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if strcmpi(a(i).event, event)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1155. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1156. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if a(i).animated&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1157. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1158. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch a(i).animated&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1159. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1160. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 1 % the mote&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1161. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1162. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ~isempty(a(i).color), set(h(ix), 'color', a(i).color); end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1163. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1164. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ~isempty(a(i).size), &amp;nbsp;set(h(ix), 'markersize', &amp;nbsp;a(i).size); &amp;nbsp;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1165. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1166. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case {2,3,4} % LEDs&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1167. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1168. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if a(i).color(1)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1169. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1170. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mode='on';&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1171. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1172. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elseif a(i).color(2)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1173. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1174. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mode='off';&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1175. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1176. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1177. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1178. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mode='toggle';&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1179. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1180. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1181. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1182. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch a(i).animated&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1183. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1184. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 2 % red LED&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1185. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1186. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_LED=hr(ix);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1187. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1188. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 3 % green LED&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1189. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1190. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_LED=hg(ix);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1191. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1192. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 4 % yellow LED&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1193. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1194. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_LED=hy(ix);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1195. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1196. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1197. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1198. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cur_col=get(h_LED, 'color');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1199. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1200. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on_col =get(h_LED, 'userdata');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1201. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1202. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if strcmp('toggle', mode)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1203. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1204. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if cur_col==on_col&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1205. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1206. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mode='off';&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1207. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1208. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1209. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1210. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mode='on';&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1211. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1212. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1213. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1214. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1215. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1216. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if strcmp('on', mode)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1217. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1218. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_LED, 'color', on_col);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1219. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1220. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1221. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1222. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_LED, 'color', [1 1 1]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1223. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1224. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1225. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1226. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1227. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1228. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drw=1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1229. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1230. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1231. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1232. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1233. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1234. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1235. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1236. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1237. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1238. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1239. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1240. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;case 'TextMessage'&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1241. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1242. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~isempty(ax)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1243. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1244. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID=varargin{2};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1245. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1246. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; txt=varargin{3};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1247. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1248. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ix=find(mote_IDs==ID);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1249. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1250. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(ht(ix), 'string', txt)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1251. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1252. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drw=1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1253. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1254. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1255. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1256. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;case 'LED'&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1257. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1258. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~isempty(ax)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1259. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1260. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID=varargin{2};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1261. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1262. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msg=varargin{3};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1263. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1264. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ix=find(mote_IDs==ID);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1265. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1266. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if findstr(lower(msg), 'red'); &amp;nbsp; &amp;nbsp;h_LED=hr(ix);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1267. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1268. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elseif findstr(lower(msg), 'green'); &amp;nbsp;h_LED=hg(ix);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1269. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1270. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elseif findstr(lower(msg), 'yellow'); h_LED=hy(ix);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1271. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1272. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else error(['Bad LED color in command ' msg]);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1273. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1274. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1275. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1276. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1277. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1278. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cur_col=get(h_LED, 'color');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1279. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1280. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; on_col =get(h_LED, 'userdata');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1281. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1282. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1283. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1284. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if findstr(lower(msg), 'on'); &amp;nbsp; &amp;nbsp; mode='on'; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1285. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1286. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elseif findstr(lower(msg), 'off'); &amp;nbsp; &amp;nbsp;mode='off';&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1287. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1288. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elseif findstr(lower(msg), 'toggle'); &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1289. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1290. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if cur_col==on_col; mode='off'; else mode='on'; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1291. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1292. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else error(['Bad LED state in command ' msg]);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1293. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1294. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1295. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1296. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1297. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1298. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if strcmp('on', mode)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1299. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1300. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_LED, 'color', on_col);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1301. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1302. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1303. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1304. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_LED, 'color', [1 1 1]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1305. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1306. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1307. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1308. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drw=1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1309. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1310. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1311. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1312. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1313. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1314. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1315. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1316. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if drw*0 &amp;nbsp;% drawnow's are managed in the main loop&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1317. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1318. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if upd==1 % fast update&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1319. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1320. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % drawnow necessary&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1321. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1322. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drwnow=1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1323. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1324. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else % slow update&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1325. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1326. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % check update time&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1327. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1328. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if etime(clock, updatetime)&amp;gt;5&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1329. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1330. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drwnow=1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1331. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1332. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1333. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1334. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drwnow=0;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1335. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1336. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1337. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1338. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1339. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1340. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if drwnow&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1341. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1342. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drawnow;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1343. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1344. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; updatetime=clock;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1345. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1346. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1347. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1348. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1349. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1350. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1351. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1352. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;function plot_line(command, ID1, ID2, varargin)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1353. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1354. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;persistent table&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1355. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1356. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% table contains current lines (or arrows) in the following format:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1357. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1358. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% each line (arrow) has a row in the table: {ID1_i, ID2_i, handle_i, command, varargin}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1359. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1360. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1361. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1362. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;command=lower(command);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1363. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1364. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1365. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1366. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if nargin&amp;gt;3&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1367. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1368. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; style=varargin;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1369. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1370. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1371. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1372. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; style=[];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1373. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1374. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1375. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1376. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1377. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1378. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;switch command&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1379. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1380. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;case {'line', 'arrow', 'delete'}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1381. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1382. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~sim_params('get', 'ANIMATE');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1383. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1384. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1385. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1386. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1387. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1388. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; [topology, mote_IDs]=prowler('GetTopologyInfo');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1389. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1390. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1391. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1392. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if strcmp(command, 'delete') &amp;amp; isinf(ID1+ID2)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1393. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1394. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ct=1; % special delete all syntax, only ID1 is needed&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1395. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1396. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1397. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1398. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ct=0; % two ID's required&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1399. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1400. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1401. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1402. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; for ix=1:length(mote_IDs)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1403. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1404. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if mote_IDs(ix) == ID1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1405. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1406. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ix1=ix; ct=ct+1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1407. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1408. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elseif &amp;nbsp;mote_IDs(ix) == ID2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1409. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1410. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ix2=ix; ct=ct+1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1411. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1412. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1413. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1414. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ct&amp;gt;1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1415. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1416. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1417. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1418. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1419. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1420. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1421. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1422. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ct&amp;lt;2 % ID not found&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1423. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1424. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error(sprintf('Bad ID for line draw: %d, %d', ID1, ID2))&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1425. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1426. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1427. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1428. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ax=findall(0, 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1429. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1430. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ~isempty(ax)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1431. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1432. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % search for line in the table; if exists, remove&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1433. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1434. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; len_t=size(table,1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1435. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1436. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for t_ix=1:len_t&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1437. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1438. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if table{t_ix, 1}==ID1 &amp;amp; table{t_ix, 2}==ID2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1439. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1440. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h=table{t_ix, 3};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1441. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1442. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table(t_ix,:)=[];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1443. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1444. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delete(h);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1445. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1446. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1447. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1448. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1449. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1450. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1451. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1452. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if strcmp(command, 'delete') &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1453. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1454. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if isinf(ID1+ID2) &amp;nbsp;% delete all&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1455. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1456. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if isinf(ID1)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1457. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1458. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID_ix=2; ID_val=ID2;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1459. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1460. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1461. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1462. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID_ix=1; ID_val=ID1;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1463. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1464. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1465. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1466. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1467. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1468. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; del_h=[]; del_ix=[];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1469. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1470. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for t_ix=1:len_t&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1471. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1472. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if table{t_ix, ID_ix}==ID_val&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1473. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1474. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; del_h=[del_h, table{t_ix, 3}];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1475. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1476. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; del_ix=[del_ix, t_ix];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1477. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1478. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1479. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1480. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1481. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1482. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table(del_ix,:)=[];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1483. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1484. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delete(del_h);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1485. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1486. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1487. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1488. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1489. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1490. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1491. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1492. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1493. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1494. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x1=topology(ix1,1); y1=topology(ix1,2);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1495. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1496. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x2=topology(ix2,1); y2=topology(ix2,2);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1497. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1498. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1499. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1500. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if strcmp(command, 'arrow') &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1501. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1502. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1503. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1504. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; phi=pi/10; &amp;nbsp;% arrow angle&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1505. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1506. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; L=0.03; &amp;nbsp; &amp;nbsp; % arrow size constant&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1507. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1508. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1509. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1510. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xa = get(ax,'xlim');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1511. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1512. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ya = get(ax,'ylim');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1513. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1514. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(ax, 'unit', 'points');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1515. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1516. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pos= get(ax,'position');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1517. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1518. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xp=pos(3); yp=pos(4); % axis size in figure&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1519. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1520. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xd = xa(2)-xa(1); &amp;nbsp; &amp;nbsp; % axis limits&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1521. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1522. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yd = ya(2)-ya(1);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1523. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1524. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scalex = L*xd/xp*yp; % compensate aspect ratio&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1525. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1526. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scaley = L*yd;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1527. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1528. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1529. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1530. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dx = x1 - x2;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1531. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1532. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dy = y1 - y2;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1533. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1534. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1535. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1536. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alphac=atan2(dy/yd*yp, dx/xd*xp); % angle of line on screen&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1537. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1538. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1539. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1540. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xx = [x1, x2, x2+scalex*cos(alphac+phi), NaN, ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1541. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1542. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x2, x2+scalex*cos(alphac-phi)]';&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1543. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1544. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yy = [y1, y2, y2+scaley*sin(alphac+phi), NaN, ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1545. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1546. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y2, y2+scaley*sin(alphac-phi)]';&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1547. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1548. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1549. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1550. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hl=line(xx,yy, 'parent', ax, 'hittest', 'off', 'tag', 'DisplayArrow', 'userdata', [ID1, ID2]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1551. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1552. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(ax, 'unit', 'normalized'); &amp;nbsp;% necessary for resizable external plot&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1553. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1554. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else % line&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1555. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1556. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hl=line([x1,x2], [y1,y2], 'parent', ax, 'hittest', 'off', 'tag', 'DisplayArrow', 'userdata', [ID1, ID2]);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1557. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1558. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1559. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1560. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ~isempty(style)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1561. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1562. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(hl, &amp;nbsp;style{:})&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1563. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1564. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1565. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1566. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table=[table; {ID1, ID2, hl, command, varargin}];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1567. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1568. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1569. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1570. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1571. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1572. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;case 'init'&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1573. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1574. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; table={};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1575. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1576. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;case 'refresh'&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1577. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1578. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; ax=findall(0, 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1579. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1580. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_arr=findobj(allchild(ax), 'flat', 'tag', 'DisplayArrow');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1581. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1582. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; new_table=table;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1583. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1584. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; for i=1:length(h_arr)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1585. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1586. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ix=get(h_arr(i),'userdata');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1587. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1588. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for j=1:length(h_arr)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1589. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1590. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if table{j,1}==ix(1) &amp;amp; table{j,2}==ix(2)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1591. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1592. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new_table{j,3}=h_arr(i);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1593. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1594. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1595. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1596. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1597. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1598. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1599. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1600. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1601. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1602. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; table=new_table;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1603. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1604. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1605. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1606. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;case 'redraw'&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1607. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1608. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; [topology, mote_IDs]=prowler('GetTopologyInfo');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1609. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1610. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; len_t=size(table,1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1611. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1612. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; table_old=table;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1613. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1614. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; for t_ix=1:len_t&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1615. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1616. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID1=table_old{t_ix,1};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1617. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1618. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID2=table_old{t_ix,2};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1619. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1620. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; command=table_old{t_ix,4};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1621. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1622. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xtra=table_old{t_ix,5};&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1623. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1624. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plot_line(command, ID1, ID2, xtra{:})&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1625. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1626. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1627. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1628. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1629. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1630. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1631. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1632. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;function out=AdjustTipButton(app_name)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1633. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1634. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% Enables Application Info pushbutton if _info file exists for the application,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1635. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1636. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% disables otherwise. Returns the info file name.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1637. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1638. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1639. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1640. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;h_tip=findobj(allchild(h_fig), 'flat', 'tag', 'Application_tips');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1641. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1642. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;infofile=[app_name, '_info'];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1643. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1644. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if exist([infofile '.m'], 'file')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1645. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1646. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; set(h_tip, 'enable', 'on')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1647. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1648. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; out=infofile;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1649. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1650. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1651. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1652. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; set(h_tip, 'enable', 'off')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1653. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1654. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; out=[];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1655. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1656. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1657. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1658. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1659. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1660. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1661. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1662. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;function out=SetApplicationParams(app_name)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1663. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1664. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% Checks if application parameters are defined.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1665. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1666. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% If not, set the default.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1667. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1668. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;h_fig=findobj(allchild(0), 'flat', 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1669. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1670. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;h_par=findobj(allchild(h_fig), 'flat', 'tag', 'Application_params');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1671. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1672. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;paramfile=[app_name, '_params'];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1673. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1674. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;if exist([paramfile '.m'], 'file')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1675. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1676. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; set(h_par, 'enable', 'on')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1677. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1678. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; p=feval(paramfile);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1679. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1680. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; for i=1:length(p)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1681. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1682. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if isempty(sim_params('get_app', p(i).name))&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1683. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1684. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if iscell(p(i).default) % popupmenu, the first element is the default&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1685. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1686. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sim_params('set_app', p(i).name, p(i).default{1});&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1687. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1688. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1689. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1690. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sim_params('set_app', p(i).name, p(i).default);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1691. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1692. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1693. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1694. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1695. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1696. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1697. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1698. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; out=paramfile;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1699. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1700. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1701. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1702. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; set(h_par, 'enable', 'off')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1703. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1704. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; out=[];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1705. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1706. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1707. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1708. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1709. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1710. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1711. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1712. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1713. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1714. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;function SwitchDisplay(mode)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1715. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1716. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;% switch between internal and external display modes&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1717. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1718. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1719. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1720. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;switch mode&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1721. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1722. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;case 'out'&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1723. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1724. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_sim_fig=findall(0, 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1725. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1726. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_ax=findall(h_sim_fig, 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1727. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1728. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~isempty(h_ax)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1729. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1730. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_ax, 'tag', 'inactive_simulation_plot_ax')&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1731. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1732. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h=findall(0, 'tag', 'simulation_plot_ax'); delete(h); % just in case...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1733. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1734. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1735. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1736. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_fig=figure(...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1737. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1738. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'name', 'Prowler - Display',...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1739. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1740. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'numbertitle', 'off', ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1741. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1742. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'integerhandle', 'off', ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1743. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1744. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'closerequestfcn', 'prowler(''SwitchDisplay'', ''in'')', ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1745. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1746. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'handlevisibility', 'off', ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1747. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1748. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'units', 'pixels', ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1749. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1750. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'tag', 'Prowler_External_Display_fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1751. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1752. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1753. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1754. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_ax_new=copyobj(h_ax, h_fig);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1755. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1756. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delete(allchild(h_ax))&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1757. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1758. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_ax, 'buttondownfcn', 'figure(findall(0,''tag'', ''Prowler_External_Display_fig''))');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1759. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1760. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1761. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1762. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_ax_new, ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1763. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1764. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'unit', 'normalized',...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1765. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1766. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'position', [0 0 1 1], ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1767. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1768. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1769. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1770. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xx=get(h_ax, 'Xlim'); yy=get(h_ax, 'Ylim');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1771. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1772. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; plot([xx(2) xx(1) nan xx(1) xx(2)], [yy(1) yy(2) nan yy(1) yy(2)], 'parent', h_ax)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1773. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1774. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1775. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1776. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1777. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1778. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;case 'in'&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1779. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1780. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_sim_fig=findall(0, 'tag', 'Simulation_Fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1781. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1782. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_ext_fig=findall(0, 'tag', 'Prowler_External_Display_fig');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1783. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1784. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; h_ax=findall(h_ext_fig, 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1785. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1786. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; if ~isempty(h_ax)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1787. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1788. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_ax, 'tag', 'external_simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1789. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1790. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1791. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1792. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h=findall(0, 'tag', 'simulation_plot_ax'); delete(h); % just in case...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1793. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1794. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1795. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1796. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_ax_old=findall(h_sim_fig, 'tag', 'inactive_simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1797. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1798. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_ax_new=copyobj(h_ax, h_sim_fig);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1799. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1800. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(h_ax_new, ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1801. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1802. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'unit', get(h_ax_old, 'unit'), ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1803. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1804. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'position', get(h_ax_old, 'position'), ...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1805. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1806. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'tag', 'simulation_plot_ax');&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1807. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1808. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delete(h_ax_old)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1809. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1810. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delete(h_ext_fig)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1811. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1812. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1813. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1814. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1815. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1816. &lt;/div&gt;
  1817. &lt;div style="background-color: white; border: 0px none; margin-bottom: 12px; margin-top: 12px; outline: none 0px; padding: 0px; text-align: justify;"&gt;
  1818. &lt;span style="font-family: MinionPro-Regular, Times; font-size: large;"&gt;&lt;span style="line-height: 20px;"&gt;plot_event('Refresh'); % update handles&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1819. &lt;/div&gt;
  1820. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>NS2 Throughput calculation awk program </title><link>http://servforu.blogspot.com/2014/08/ns2-throughput-calculation-awk-program.html</link><category>AODV</category><category>awk</category><category>calculate</category><category>calculation</category><category>Code</category><category>DSDV</category><category>dsr</category><category>NS2</category><category>ns3</category><category>Program</category><category>Tcl script</category><category>throughput</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 12 Aug 2014 04:34:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-8536782545092109529</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  1821. &lt;span style="background-color: white; color: #3c3c3c; font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 15px; line-height: 22px; text-align: justify;"&gt;Throughput refers to how much data can be transferred from one location to another in a given amount of time. &amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"&gt;The following code will count all the received application packets in a network such that we can calculated the network throughput.&lt;/span&gt;&lt;br /&gt;
  1822. &lt;span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"&gt;&lt;br /&gt;&lt;/span&gt;
  1823. &lt;span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.479999542236328px;"&gt;Throughput Vs Time . more throughput is better protocol&lt;/span&gt;&lt;br /&gt;
  1824. &lt;br /&gt;
  1825. AWK PROGRAM&lt;br /&gt;
  1826. &lt;br /&gt;
  1827. ######################################################################&lt;br /&gt;
  1828. &lt;br /&gt;
  1829. &lt;br /&gt;
  1830. BEGIN {&lt;br /&gt;
  1831. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;init=0;&lt;br /&gt;
  1832. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;i=0;&lt;br /&gt;
  1833. }&lt;br /&gt;
  1834. {&lt;br /&gt;
  1835. &amp;nbsp; &amp;nbsp;action = $1;&lt;br /&gt;
  1836. &amp;nbsp; &amp;nbsp;time = $2;&lt;br /&gt;
  1837. &amp;nbsp; &amp;nbsp;from = $3;&lt;br /&gt;
  1838. &amp;nbsp; &amp;nbsp;to = $4;&lt;br /&gt;
  1839. &amp;nbsp; &amp;nbsp;type = $7;&lt;br /&gt;
  1840. &amp;nbsp; &amp;nbsp;pktsize = $6;&lt;br /&gt;
  1841. &amp;nbsp; &amp;nbsp;flow_id = $8;&lt;br /&gt;
  1842. &amp;nbsp; &amp;nbsp;src = $9;&lt;br /&gt;
  1843. &amp;nbsp; &amp;nbsp;dst = $10;&lt;br /&gt;
  1844. &amp;nbsp; &amp;nbsp;seq_no = $11;&lt;br /&gt;
  1845. &amp;nbsp; &amp;nbsp;packet_id = $6;&lt;br /&gt;
  1846. &amp;nbsp; &lt;br /&gt;
  1847. &amp;nbsp; if(action=="r" &amp;amp;&amp;amp; from==2 &amp;amp;&amp;amp; to==3 &amp;amp;&amp;amp; type=="cbr") {&lt;br /&gt;
  1848. &amp;nbsp;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;pkt_byte_sum[i+1]=pkt_byte_sum[i]+ pktsize;&lt;br /&gt;
  1849. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;br /&gt;
  1850. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;if(init==0) {&lt;br /&gt;
  1851. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;start_time = time;&lt;br /&gt;
  1852. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;init = 1;&lt;br /&gt;
  1853. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;}&lt;br /&gt;
  1854. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;br /&gt;
  1855. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;end_time[i] = time;&lt;br /&gt;
  1856. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;i = i+1;&lt;br /&gt;
  1857. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;br /&gt;
  1858. }&lt;br /&gt;
  1859. END {&lt;br /&gt;
  1860. &lt;br /&gt;
  1861. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;printf("%.2f\t%.2f\n", end_time[0], 0);&lt;br /&gt;
  1862. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;
  1863. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;for(j=1 ; j&amp;lt;i ; j++){&lt;br /&gt;
  1864. &lt;br /&gt;
  1865. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;th = pkt_byte_sum[j] / (end_time[j] - start_time)*8/1000;&lt;br /&gt;
  1866. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;printf("%.2f\t%.2f\n", end_time[j], th);&lt;br /&gt;
  1867. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;br /&gt;
  1868. &lt;br /&gt;
  1869. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;printf("%.2f\t%.2f\n", end_time[i-1], 0);&lt;br /&gt;
  1870. }&lt;br /&gt;
  1871. &lt;br /&gt;
  1872. AWK&lt;br /&gt;
  1873. &lt;br /&gt;
  1874. &lt;br /&gt;&lt;/div&gt;
  1875. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>NS2 , AWK script for finding the packet delivery ratio  </title><link>http://servforu.blogspot.com/2014/08/ns2-awk-script-for-finding-packet.html</link><category>AODV</category><category>awk</category><category>calculate</category><category>Code</category><category>delivery</category><category>download</category><category>DSDV</category><category>energy</category><category>free</category><category>NS2</category><category>packet delivery ratio</category><category>Program</category><category>programming</category><category>ratio</category><category>Routing Protocol</category><category>tcl</category><category>Tcl script</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 12 Aug 2014 04:23:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-2363770110595114017</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  1876. &lt;br /&gt;
  1877. &lt;blockquote style="background-color: white; border-left-color: rgb(255, 166, 107); border-left-style: solid; border-width: 0px 0px 0px 5px; color: #666666; font-family: Bitter, sans-serif; font-size: 16px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px 0px 0px 1.5em; quotes: ''; vertical-align: baseline;"&gt;
  1878. &lt;div style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  1879. Packet delivery ratio : the ratio of the number of delivered data packet to the destination. This illustrates the level of delivered data to the destination.&lt;/div&gt;
  1880. &lt;div style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  1881. ∑ Number of packet receive / ∑ Number of packet send&lt;/div&gt;
  1882. &lt;/blockquote&gt;
  1883. &lt;div style="background-color: white; border: 0px; color: #666666; font-family: Bitter, sans-serif; font-size: 14px; line-height: 28px; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  1884. The greater value of packet delivery ratio means the better performance of the protocol.&lt;/div&gt;
  1885. ###################################################################&lt;br /&gt;
  1886. &lt;br /&gt;
  1887. # Initialization settings&lt;br /&gt;
  1888. BEGIN {&lt;br /&gt;
  1889. &lt;br /&gt;
  1890. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sendLine = 0;&lt;br /&gt;
  1891. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; recvLine = 0;&lt;br /&gt;
  1892. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fowardLine = 0;&lt;br /&gt;
  1893. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(mseq==0)&lt;br /&gt;
  1894. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;mseq=10000;&lt;br /&gt;
  1895. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;for(i=0;i&amp;lt;mseq;i++){&lt;br /&gt;
  1896. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;rseq[i]=-1;&lt;br /&gt;
  1897. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;sseq[i]=-1;&lt;br /&gt;
  1898. &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;br /&gt;
  1899. }&lt;br /&gt;
  1900. # Applications received packet&lt;br /&gt;
  1901. $0 ~/^s.* AGT/ {&lt;br /&gt;
  1902. #&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;if(sseq[$6]==-1){&lt;br /&gt;
  1903. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;sendLine ++ ;&lt;br /&gt;
  1904. # &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;sseq[$6]=$6;&lt;br /&gt;
  1905. #&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;br /&gt;
  1906. }&lt;br /&gt;
  1907. &lt;br /&gt;
  1908. # Applications to send packets&lt;br /&gt;
  1909. $0 ~/^r.* AGT/{&lt;br /&gt;
  1910. #&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;if(rreq[$6]==-1){&lt;br /&gt;
  1911. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;recvLine ++ ;&lt;br /&gt;
  1912. # &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;sseq[$6]=$6;&lt;br /&gt;
  1913. # &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
  1914. &lt;br /&gt;
  1915. }&lt;br /&gt;
  1916. &lt;br /&gt;
  1917. &lt;br /&gt;
  1918. # Routing procedures to forward the packet&lt;br /&gt;
  1919. $0 ~/^f.* RTR/ {&lt;br /&gt;
  1920. &lt;br /&gt;
  1921. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fowardLine ++ ;&lt;br /&gt;
  1922. &lt;br /&gt;
  1923. }&lt;br /&gt;
  1924. &lt;br /&gt;
  1925. # Final output&lt;br /&gt;
  1926. END {&lt;br /&gt;
  1927. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf "cbr s:%d r:%d, r/s Ratio:%.4f, f:%d \n", sendLine, recvLine, (recvLine/sendLine),fowardLine;&lt;br /&gt;
  1928. &lt;br /&gt;
  1929. }&lt;br /&gt;
  1930. &lt;br /&gt;
  1931. &lt;br /&gt;
  1932. &lt;br /&gt;
  1933. ###############################################################&lt;/div&gt;
  1934. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>AWK code for Measure End to End  Delay - NS2 </title><link>http://servforu.blogspot.com/2014/08/awk-code-for-measure-end-to-end-delay.html</link><category>awk</category><category>calculate</category><category>calculation</category><category>Code</category><category>delay</category><category>end to end</category><category>free</category><category>network simulator</category><category>NS2</category><category>path</category><category>path delay calculation</category><category>Program</category><category>Project</category><category>Tcl script</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 12 Aug 2014 04:14:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-9085760094472929072</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  1935. &lt;br /&gt;
  1936. &lt;blockquote style="background-color: white; border-left-color: rgb(255, 166, 107); border-left-style: solid; border-width: 0px 0px 0px 5px; color: #666666; font-family: Bitter, sans-serif; font-size: 16px; margin: 0px 0px 1.5em; outline: 0px; padding: 0px 0px 0px 1.5em; quotes: ''; vertical-align: baseline;"&gt;
  1937. &lt;div style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  1938. End-to-end Delay : the average time taken by a data packet to arrive in the destination. It also includes the delay caused by route discovery process and the queue in data packet transmission. Only the data packets that successfully delivered to destinations that counted.&lt;/div&gt;
  1939. &lt;div style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  1940. ∑ ( arrive time – send time ) / ∑ Number of connections&lt;/div&gt;
  1941. &lt;/blockquote&gt;
  1942. &lt;div style="background-color: white; border: 0px; color: #666666; font-family: Bitter, sans-serif; font-size: 14px; line-height: 28px; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  1943. The lower value of end to end delay means the better performance of the protocol.&lt;/div&gt;
  1944. Here is the AWK Script for calculating the delay&lt;br /&gt;
  1945. &lt;br /&gt;
  1946. ################################################################################&lt;br /&gt;
  1947. &lt;br /&gt;
  1948. BEGIN {&lt;br /&gt;
  1949. &amp;nbsp; &amp;nbsp; &amp;nbsp;highest_packet_id = 0;&lt;br /&gt;
  1950. }&lt;br /&gt;
  1951. {&lt;br /&gt;
  1952. &amp;nbsp; &amp;nbsp;action = $1;&lt;br /&gt;
  1953. &amp;nbsp; &amp;nbsp;time = $3;&lt;br /&gt;
  1954. &amp;nbsp; &amp;nbsp;#from = $3;&lt;br /&gt;
  1955. &amp;nbsp; &amp;nbsp;#to = $4;&lt;br /&gt;
  1956. &amp;nbsp; &amp;nbsp;type = $35; #aodv relationships,if 5 no infomation&lt;br /&gt;
  1957. &amp;nbsp; &amp;nbsp;pktsize = $37;&lt;br /&gt;
  1958. &amp;nbsp; &amp;nbsp;#src = $9;&lt;br /&gt;
  1959. &amp;nbsp; &amp;nbsp;#dst = $10;&lt;br /&gt;
  1960. &amp;nbsp; &amp;nbsp;#seq_no = $11;&lt;br /&gt;
  1961. &amp;nbsp; &amp;nbsp;packet_id = $41;&lt;br /&gt;
  1962. &lt;br /&gt;
  1963. &amp;nbsp;&lt;br /&gt;
  1964. if ( type != "AODV" ) {&lt;br /&gt;
  1965. &lt;br /&gt;
  1966. &amp;nbsp; &amp;nbsp;if ( packet_id &amp;gt; highest_packet_id )&lt;br /&gt;
  1967. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;highest_packet_id = packet_id;&lt;br /&gt;
  1968. &lt;br /&gt;
  1969. if ( start_time[packet_id] == 0 )&lt;br /&gt;
  1970. &lt;br /&gt;
  1971. &amp;nbsp;if ( type == "cbr" &amp;amp;&amp;amp; action != "d" ) {&lt;br /&gt;
  1972. &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( action == "r" ) {&lt;br /&gt;
  1973. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end_time[packet_id] = time;&lt;br /&gt;
  1974. &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
  1975. &amp;nbsp; &amp;nbsp;} else {&lt;br /&gt;
  1976. &lt;br /&gt;
  1977. end_time[packet_id] = -1;&lt;br /&gt;
  1978. &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
  1979. }&lt;br /&gt;
  1980. }&lt;br /&gt;
  1981. END {&lt;br /&gt;
  1982. &lt;br /&gt;
  1983. &amp;nbsp;for ( packet_id = 0; packet_id &amp;lt;= highest_packet_id; packet_id++ ) {&lt;br /&gt;
  1984. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;start = start_time[packet_id];&lt;br /&gt;
  1985. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end = end_time[packet_id];&lt;br /&gt;
  1986. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;packet_duration = end - start;&lt;br /&gt;
  1987. &lt;br /&gt;
  1988. &amp;nbsp;if ( start &amp;lt; end ) printf("%f %f\n", start, packet_duration);&lt;br /&gt;
  1989. &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
  1990. }&lt;br /&gt;
  1991. &lt;br /&gt;
  1992. ###########################################################&lt;/div&gt;
  1993. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>Extended Kalman Filter (EKF) MATLAB Implimentation</title><link>http://servforu.blogspot.com/2014/08/extended-kalman-filter-ekf-matlab.html</link><category>advantages</category><category>applications</category><category>c program</category><category>Code</category><category>download</category><category>extended Kalman Filter</category><category>implimentation</category><category>kalman filter</category><category>LINEAR</category><category>linear system</category><category>M.E</category><category>MATLAB</category><category>matlab alternate</category><category>non linear</category><category>programming</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sun, 10 Aug 2014 06:15:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-4572355673744297053</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  1994. &lt;b&gt;Kalman Filter (KF)&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
  1995. &lt;br /&gt;
  1996. Linear dynamical system (Linear evolution functions)&lt;br /&gt;
  1997. &lt;br /&gt;
  1998. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  1999. &lt;a href="http://1.bp.blogspot.com/-iwQsPKcs1JQ/U-dtvH74QUI/AAAAAAAAIHc/8CjN0We-ooA/s1600/KF.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-iwQsPKcs1JQ/U-dtvH74QUI/AAAAAAAAIHc/8CjN0We-ooA/s1600/KF.png" height="87" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;
  2000. &lt;br /&gt;
  2001. &lt;br /&gt;
  2002. &lt;br /&gt;
  2003. &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
  2004. &lt;b&gt;Extended Kalman Filter (EKF)&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
  2005. &lt;br /&gt;
  2006. Non-linear dynamical system (Non-linear evolution functions)&lt;br /&gt;
  2007. &lt;br /&gt;
  2008. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2009. &lt;a href="http://1.bp.blogspot.com/-Zc-G0DDmVLY/U-dt6k_8QfI/AAAAAAAAIHk/OPQRv42WTe8/s1600/EKF.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-Zc-G0DDmVLY/U-dt6k_8QfI/AAAAAAAAIHk/OPQRv42WTe8/s1600/EKF.png" /&gt;&lt;/a&gt;&lt;/div&gt;
  2010. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2011. &lt;br /&gt;&lt;/div&gt;
  2012. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2013. Consider the following non-linear system:&lt;/div&gt;
  2014. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2015. &lt;br /&gt;&lt;/div&gt;
  2016. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2017. &lt;a href="http://2.bp.blogspot.com/-a4BKP0j2tJw/U-dueA4FfLI/AAAAAAAAIH0/g7H5lVUazOI/s1600/REFER.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-a4BKP0j2tJw/U-dueA4FfLI/AAAAAAAAIH0/g7H5lVUazOI/s1600/REFER.png" height="57" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
  2018. &lt;br /&gt;
  2019. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2020. &lt;br /&gt;&lt;/div&gt;
  2021. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2022. Assume that we can somehow determine a reference trajectory&amp;nbsp;&lt;/div&gt;
  2023. &lt;div class="" style="clear: both; text-align: left;"&gt;
  2024. Then:&lt;/div&gt;
  2025. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2026. &lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/-gtP41ydAL7A/U-ducyKjAWI/AAAAAAAAIHs/OZifxyOPZqc/s1600/LINER.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-gtP41ydAL7A/U-ducyKjAWI/AAAAAAAAIHs/OZifxyOPZqc/s1600/LINER.png" /&gt;&lt;/a&gt;&lt;/div&gt;
  2027. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2028. &lt;br /&gt;&lt;/div&gt;
  2029. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2030. where&lt;/div&gt;
  2031. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2032. &lt;br /&gt;&lt;/div&gt;
  2033. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2034. &lt;a href="http://4.bp.blogspot.com/-9vo2VAagahI/U-duoc2SdOI/AAAAAAAAIH8/l9KS-UaYLwE/s1600/tail.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-9vo2VAagahI/U-duoc2SdOI/AAAAAAAAIH8/l9KS-UaYLwE/s1600/tail.png" height="65" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
  2035. &lt;div class="separator" style="clear: both;"&gt;
  2036. For the measurement equation, we have:&lt;/div&gt;
  2037. &lt;div class="separator" style="clear: both;"&gt;
  2038. &lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/-PBu_TNFHj5c/U-dvTaL2Y-I/AAAAAAAAIIM/UdgmIwljRI0/s1600/mesa.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-PBu_TNFHj5c/U-dvTaL2Y-I/AAAAAAAAIIM/UdgmIwljRI0/s1600/mesa.png" height="51" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
  2039. &lt;div class="separator" style="clear: both;"&gt;
  2040. We can then apply the standard Kalman filter to the linearized model&lt;/div&gt;
  2041. &lt;div class="" style="clear: both;"&gt;
  2042. How to choose the reference trajectory?&lt;/div&gt;
  2043. &lt;div class="" style="clear: both;"&gt;
  2044. Idea of the extended Kalman filter is to re-linearize the model around the most recent state estimate, i.e.&lt;/div&gt;
  2045. &lt;br /&gt;
  2046. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2047. &lt;a href="http://4.bp.blogspot.com/-e4Na9tpzWJc/U-dvTWPDw_I/AAAAAAAAIII/7FQ5F2SqgYs/s1600/estim.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-e4Na9tpzWJc/U-dvTWPDw_I/AAAAAAAAIII/7FQ5F2SqgYs/s1600/estim.png" /&gt;&lt;/a&gt;&lt;/div&gt;
  2048. &lt;div class="separator" style="clear: both;"&gt;
  2049. &lt;br /&gt;&lt;/div&gt;
  2050. &lt;div class="separator" style="clear: both;"&gt;
  2051. &lt;br /&gt;&lt;/div&gt;
  2052. &lt;div class="separator" style="clear: both;"&gt;
  2053. The &lt;b&gt;Extended Kalman Filter (EKF)&lt;/b&gt; has become a standard &amp;nbsp; &amp;nbsp;technique used in a number of&amp;nbsp;&lt;/div&gt;
  2054. &lt;div class="separator" style="clear: both;"&gt;
  2055. # nonlinear estimation and&amp;nbsp;&lt;/div&gt;
  2056. &lt;div class="separator" style="clear: both;"&gt;
  2057. # machine learning applications&lt;/div&gt;
  2058. &lt;div class="separator" style="clear: both;"&gt;
  2059. #State estimation&lt;/div&gt;
  2060. &lt;div class="separator" style="clear: both;"&gt;
  2061. #estimating the state of a nonlinear dynamic system&lt;/div&gt;
  2062. &lt;div class="separator" style="clear: both;"&gt;
  2063. #Parameter estimation&lt;/div&gt;
  2064. &lt;div class="separator" style="clear: both;"&gt;
  2065. #estimating parameters for nonlinear system identification&lt;/div&gt;
  2066. &lt;div class="separator" style="clear: both;"&gt;
  2067. #e.g., learning the weights of a neural network&lt;/div&gt;
  2068. &lt;div class="separator" style="clear: both;"&gt;
  2069. #dual estimation&amp;nbsp;&lt;/div&gt;
  2070. &lt;div class="separator" style="clear: both;"&gt;
  2071. #both states and parameters are estimated simultaneously&lt;/div&gt;
  2072. &lt;div class="separator" style="clear: both;"&gt;
  2073. #e.g., the Expectation Maximization (EM) algorithm&lt;/div&gt;
  2074. &lt;br /&gt;
  2075. MATLAB CODE&lt;br /&gt;
  2076. ########################################################################&lt;br /&gt;
  2077. function [x_next,P_next,x_dgr,P_dgr] = ekf(f,Q,h,y,R,del_f,del_h,x_hat,P_hat);&lt;br /&gt;
  2078. % Extended Kalman filter&lt;br /&gt;
  2079. %&lt;br /&gt;
  2080. % -------------------------------------------------------------------------&lt;br /&gt;
  2081. %&lt;br /&gt;
  2082. % State space model is&lt;br /&gt;
  2083. % X_k+1 = f_k(X_k) + V_k+1 &amp;nbsp; --&amp;gt; &amp;nbsp;state update&lt;br /&gt;
  2084. % Y_k = h_k(X_k) + W_k &amp;nbsp; &amp;nbsp; &amp;nbsp; --&amp;gt; &amp;nbsp;measurement&lt;br /&gt;
  2085. %&lt;br /&gt;
  2086. % V_k+1 zero mean uncorrelated gaussian, cov(V_k) = Q_k&lt;br /&gt;
  2087. % W_k zero mean uncorrelated gaussian, cov(W_k) = R_k&lt;br /&gt;
  2088. % V_k &amp;amp; W_j are uncorrelated for every k,j&lt;br /&gt;
  2089. %&lt;br /&gt;
  2090. % -------------------------------------------------------------------------&lt;br /&gt;
  2091. %&lt;br /&gt;
  2092. % Inputs:&lt;br /&gt;
  2093. % f = f_k&lt;br /&gt;
  2094. % Q = Q_k+1&lt;br /&gt;
  2095. % h = h_k&lt;br /&gt;
  2096. % y = y_k&lt;br /&gt;
  2097. % R = R_k&lt;br /&gt;
  2098. % del_f = gradient of f_k&lt;br /&gt;
  2099. % del_h = gradient of h_k&lt;br /&gt;
  2100. % x_hat = current state prediction&lt;br /&gt;
  2101. % P_hat = current error covariance (predicted)&lt;br /&gt;
  2102. %&lt;br /&gt;
  2103. % -------------------------------------------------------------------------&lt;br /&gt;
  2104. %&lt;br /&gt;
  2105. % Outputs:&lt;br /&gt;
  2106. % x_next = next state prediction&lt;br /&gt;
  2107. % P_next = next error covariance (predicted)&lt;br /&gt;
  2108. % x_dgr = current state estimate&lt;br /&gt;
  2109. % P_dgr = current estimated error covariance&lt;br /&gt;
  2110. %&lt;br /&gt;
  2111. % -------------------------------------------------------------------------&lt;br /&gt;
  2112. %&lt;br /&gt;
  2113. &lt;br /&gt;
  2114. if isa(f,'function_handle') &amp;amp; isa(h,'function_handle') &amp;amp; isa(del_f,'function_handle') &amp;amp; isa(del_h,'function_handle')&lt;br /&gt;
  2115. &amp;nbsp; &amp;nbsp; y_hat = h(x_hat);&lt;br /&gt;
  2116. &amp;nbsp; &amp;nbsp; y_tilde = y - y_hat;&lt;br /&gt;
  2117. &amp;nbsp; &amp;nbsp; t = del_h(x_hat);&lt;br /&gt;
  2118. &amp;nbsp; &amp;nbsp; tmp = P_hat*t;&lt;br /&gt;
  2119. &amp;nbsp; &amp;nbsp; M = inv(t'*tmp+R+eps);&lt;br /&gt;
  2120. &amp;nbsp; &amp;nbsp; K = tmp*M;&lt;br /&gt;
  2121. &amp;nbsp; &amp;nbsp; p = del_f(x_hat);&lt;br /&gt;
  2122. &amp;nbsp; &amp;nbsp; x_dgr = x_hat + K* y_tilde;&lt;br /&gt;
  2123. &amp;nbsp; &amp;nbsp; x_next = f(x_dgr);&lt;br /&gt;
  2124. &amp;nbsp; &amp;nbsp; P_dgr = P_hat - tmp*K';&lt;br /&gt;
  2125. &amp;nbsp; &amp;nbsp; P_next = p* P_dgr* p' + Q;&lt;br /&gt;
  2126. else&lt;br /&gt;
  2127. &amp;nbsp; &amp;nbsp; error('f, h, del_f, and del_h should be function handles')&lt;br /&gt;
  2128. &amp;nbsp; &amp;nbsp; return&lt;br /&gt;
  2129. end&lt;br /&gt;
  2130. &lt;br /&gt;
  2131. ##############################################################################&lt;br /&gt;
  2132. &lt;br /&gt;
  2133. &lt;br /&gt;
  2134. For more&lt;br /&gt;
  2135. &lt;a href="https://www.blogger.com/goog_462001372"&gt;&lt;br /&gt;&lt;/a&gt;
  2136. &lt;a href="https://drive.google.com/folderview?id=0B2l8IvcdrC4oMzU3Z2NVXzQ0Y28&amp;amp;usp=sharing"&gt;https://drive.google.com/folderview?id=0B2l8IvcdrC4oMzU3Z2NVXzQ0Y28&amp;amp;usp=sharing&lt;/a&gt;&lt;/div&gt;
  2137. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://1.bp.blogspot.com/-iwQsPKcs1JQ/U-dtvH74QUI/AAAAAAAAIHc/8CjN0We-ooA/s72-c/KF.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>NETWORK SECURITY FINAL YEAR PROJECT TITLES IEEE 2014 </title><link>http://servforu.blogspot.com/2014/07/network-security-final-year-project.html</link><category>2014</category><category>ECE</category><category>IEEE</category><category>M E COMMUNICATION SYSTEMS</category><category>M.E</category><category>M.TECH</category><category>network simulator</category><category>networks</category><category>NS2</category><category>papers</category><category>Projects</category><category>SIMULATION</category><category>Titles</category><category>Wireless sensor Networks</category><category>WirelessSensorNetworks</category><category>WSN</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sun, 20 Jul 2014 08:32:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-1882783112860783994</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2138. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2139. &lt;/div&gt;
  2140. &lt;br /&gt;
  2141. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2142. &lt;/div&gt;
  2143. &lt;a href="http://2.bp.blogspot.com/-YCkSZWUySxA/U8vglBaLPSI/AAAAAAAAIGI/i1AD3qu_Kk4/s1600/network_security.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-YCkSZWUySxA/U8vglBaLPSI/AAAAAAAAIGI/i1AD3qu_Kk4/s1600/network_security.jpg" height="200" width="190" /&gt;&lt;/a&gt;&lt;span style="font-size: large;"&gt;Network security is the one of the best feilds of the research which deals with securing the privacy . Here i have selected some papers from IEEE Transactions 2014 for implementing .may be helpful for the scholars looking for their final year projects . These papers can be implemented using ns2 or other network simulators .Internet of Things and Cloud storage is two emerging technologies .I have mentioned some topics on the security of these technologies too .&lt;/span&gt;&lt;br /&gt;
  2144. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2145. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2146. &lt;span style="font-size: large;"&gt;1.A Bayesian-MRF Approach for PRNU-Based Image Forgery Detection&lt;/span&gt;&lt;br /&gt;
  2147. &lt;span style="font-size: large;"&gt;2.Adaptively Splitted GMM With Feedback Improvement for the Task of Background Subtraction&lt;/span&gt;&lt;br /&gt;
  2148. &lt;span style="font-size: large;"&gt;3.A Method for Mining Infrequent Causal Associations and Its Application in Finding Adverse Drug Reaction Signal Pairs&lt;/span&gt;&lt;br /&gt;
  2149. &lt;span style="font-size: large;"&gt;4.A Methodology for Direct and Indirect Discrimination Prevention in Data Mining&lt;/span&gt;&lt;br /&gt;
  2150. &lt;span style="font-size: large;"&gt;5.DDoS Detection Method Based on Chaos Analysis of Network Traffic Entropy&lt;/span&gt;&lt;br /&gt;
  2151. &lt;span style="font-size: large;"&gt;6.Dynamic Multiservice Load Balancing in Cloud-Based Multimedia System&lt;/span&gt;&lt;br /&gt;
  2152. &lt;span style="font-size: large;"&gt;7.Efficient Algorithms for Mining High Utility Itemsets from Transactional Databases&lt;/span&gt;&lt;br /&gt;
  2153. &lt;span style="font-size: large;"&gt;8.Enabling P2P One-View Multiparty Video Conferencing&lt;/span&gt;&lt;br /&gt;
  2154. &lt;span style="font-size: large;"&gt;9.Key-Aggregate Cryptosystem for Scalable Data Sharing in Cloud Storage&lt;/span&gt;&lt;br /&gt;
  2155. &lt;span style="font-size: large;"&gt;10.Meeting Deadlines of Scientific Workflows in Public Clouds with Tasks Replication&lt;/span&gt;&lt;br /&gt;
  2156. &lt;span style="font-size: large;"&gt;11.Mona Secure Multi-Owner Data Sharing for Dynamic Groups in the Cloud&lt;/span&gt;&lt;br /&gt;
  2157. &lt;span style="font-size: large;"&gt;12.Optimal Multiserver Configuration for Profit Maximization in Cloud Computing&lt;/span&gt;&lt;br /&gt;
  2158. &lt;span style="font-size: large;"&gt;13.Preventing Private Information Inference Attacks on Social Networks&lt;/span&gt;&lt;br /&gt;
  2159. &lt;span style="font-size: large;"&gt;14.Privacy-Preserving Authenticated Key-Exchange Over Internet&lt;/span&gt;&lt;br /&gt;
  2160. &lt;span style="font-size: large;"&gt;15.Privacy-Preserving Public Auditing for Secure Cloud Storage&lt;/span&gt;&lt;br /&gt;
  2161. &lt;span style="font-size: large;"&gt;16.Private Searching on Streaming Data Based on Keyword Frequency&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  2162. &lt;span style="font-size: large;"&gt;17.Scalable Distributed Service Integrity Attestation for Software-as-a-Service Clouds&lt;/span&gt;&lt;br /&gt;
  2163. &lt;span style="font-size: large;"&gt;18.Secure Two-Party Differentially Private Data Release for Vertically Partitioned Data&lt;/span&gt;&lt;br /&gt;
  2164. &lt;span style="font-size: large;"&gt;19.SORT: A Self-ORganizing Trust Model for Peer-to-Peer Systems&lt;/span&gt;&lt;br /&gt;
  2165. &lt;span style="font-size: large;"&gt;20.Temporal Load Balancing with Service Delay Guarantees for Data Center Energy Cost Optimization&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  2166. &lt;span style="font-size: large;"&gt;21.Topic-Sensitive Influencer Mining in Interest-Based Social Media Networks via Hypergraph Learning&lt;/span&gt;&lt;br /&gt;
  2167. &lt;span style="font-size: large;"&gt;22.Toward Optimal Fusion Algorithms With Security Against Wolves and Lambs in Biometrics&lt;/span&gt;&lt;br /&gt;
  2168. &lt;span style="font-size: large;"&gt;23.Trustworthiness Management in the Social Internet of Things&lt;/span&gt;&lt;br /&gt;
  2169. &lt;span style="font-size: large;"&gt;24.User Authentication Through Mouse Dynamics&lt;/span&gt;&lt;br /&gt;
  2170. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2171. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2172. &lt;span style="font-size: large;"&gt;If you feel difficulty in implementing any of these just ping me&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  2173. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2174. &lt;span style="color: #cc0000;"&gt;&lt;br class="Apple-interchange-newline" /&gt;&lt;/span&gt;&lt;span style="color: #cc0000;"&gt;&lt;span style="font-size: large;"&gt;&lt;a href="http://www.ebinephrem.com/" target="_blank"&gt;CONTACT ME&amp;nbsp;&lt;/a&gt;&amp;nbsp;:&lt;a href="mailto:me@ebinephrem.com" target="_blank"&gt;&amp;nbsp;MAIL ME&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  2175. &lt;br /&gt;
  2176. &lt;span style="font-size: large;"&gt;&lt;a href="http://goo.gl/T9zLh3" target="_blank"&gt;PROJECT ENQIRY FORM &amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
  2177. &lt;br /&gt;
  2178. &lt;br /&gt;
  2179. &lt;br /&gt;
  2180. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2181. &lt;a href="http://4.bp.blogspot.com/-AieotZR53iw/U8vgnshXshI/AAAAAAAAIGQ/CSaqj5BDKgs/s1600/download+(1).jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-AieotZR53iw/U8vgnshXshI/AAAAAAAAIGQ/CSaqj5BDKgs/s1600/download+(1).jpg" height="352" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
  2182. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2183. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2184. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://2.bp.blogspot.com/-YCkSZWUySxA/U8vglBaLPSI/AAAAAAAAIGI/i1AD3qu_Kk4/s72-c/network_security.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Modeling, Design &amp; Simulation of an Adaptive Neuro- Fuzzy Inference System (ANFIS) for Speed Control of Induction Motor</title><link>http://servforu.blogspot.com/2014/07/modeling-design-simulation-of-adaptive.html</link><category>2014</category><category>algorithm</category><category>anfis</category><category>ann</category><category>fuzzy logic</category><category>IEEE</category><category>Induction Motor</category><category>intellectual property act</category><category>M.E</category><category>MATLAB</category><category>networks</category><category>neural</category><category>non linear</category><category>Project</category><category>Projects</category><category>voltage</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 16 Jul 2014 01:12:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-4776819138507217840</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2185. A novel design of an adaptive neuro fuzzy inference strategy&amp;nbsp; (ANFIS) for controlling some of the parameters, such as speed,&amp;nbsp; torque, flux, voltage, current, etc. of the induction motor is&amp;nbsp; presented in this paper. Induction motors are characterized by&amp;nbsp; highly non-linear, complex and time-varying dynamics and &lt;br /&gt;inaccessibility of some of the states and outputs for&amp;nbsp; measurements. Hence it can be considered as a challenging&amp;nbsp; engineering problem in the industrial sector. Various advanced&amp;nbsp; control techniques has been devised by various researchers across&amp;nbsp; the world. Some of them are based on the fuzzy techniques. &lt;br /&gt;&lt;br /&gt;
  2186. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2187. &lt;a href="http://4.bp.blogspot.com/-dAYGcDgTcwc/U8YyMdazTaI/AAAAAAAAIF0/kktZ8nKE934/s1600/img021.GIF" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-dAYGcDgTcwc/U8YyMdazTaI/AAAAAAAAIF0/kktZ8nKE934/s1600/img021.GIF" height="300" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
  2188. &lt;br /&gt;
  2189. &lt;br /&gt;
  2190. &amp;nbsp;Fuzzy logic based controllers are considered as potential candidates for such an application. Fuzzy based controllers develop a control signal which yields on the firing of the rule base, which is written on the previous experiences &amp;amp; these rules are fired which is random in nature. As a result of which, the&amp;nbsp; outcome of the controller is also random &amp;amp; optimal results may not be obtained. Selection of the proper rule base depending &lt;br /&gt;&amp;nbsp;upon the situation can be achieved by the use of an ANFIS&amp;nbsp; controller, which becomes an integrated method of approach for the control purposes &amp;amp; yields excellent results, which is the&amp;nbsp; highlight of this paper. In the designed ANFIS scheme, neural network techniques are used to select a proper rule base, which is &lt;br /&gt;&amp;nbsp;achieved using the back propagation algorithm. This integrated&amp;nbsp; approach improves the system performance, cost-effectiveness, efficiency, dynamism, reliability of the designed controller. The simulation results presented in this paper show the effectiveness of the method developed &amp;amp; has got faster response time or settling &lt;br /&gt;times. Further, the method developed has got a wide number of advantages in the industrial sector &amp;amp; can be converted into a real time application using some interfacing cards.&lt;/div&gt;
  2191. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://4.bp.blogspot.com/-dAYGcDgTcwc/U8YyMdazTaI/AAAAAAAAIF0/kktZ8nKE934/s72-c/img021.GIF" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Wireless Sensor Networks Project IEEE  2014 Papers and Titles </title><link>http://servforu.blogspot.com/2014/07/wireless-sensor-networks-project-ieee.html</link><category>2014</category><category>ECE</category><category>IEEE</category><category>M E COMMUNICATION SYSTEMS</category><category>M.E</category><category>M.TECH</category><category>network simulator</category><category>networks</category><category>NS2</category><category>papers</category><category>Projects</category><category>SIMULATION</category><category>Titles</category><category>Wireless sensor Networks</category><category>WirelessSensorNetworks</category><category>WSN</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 16 Jul 2014 00:50:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-7747224262793792682</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2192. &lt;b&gt;&lt;span style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
  2193. &lt;b&gt;&lt;span style="font-size: x-large;"&gt;MANET&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
  2194. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2195. &lt;span style="font-size: large;"&gt;1. AASR: Authenticated Anonymous Secure Routing for MANETs in Adversarial Environments&lt;/span&gt;&lt;br /&gt;
  2196. &lt;br /&gt;
  2197. &lt;span style="font-size: large;"&gt;2.Energy-Efficient Reliable Routing Considering Residual Energy in Wireless Ad Hoc Networks&lt;/span&gt;&lt;br /&gt;
  2198. &lt;br /&gt;
  2199. &lt;span style="font-size: large;"&gt;3.Joint Topology-Transparent Scheduling and QoS Routing in Ad Hoc Networks&lt;/span&gt;&lt;br /&gt;
  2200. &lt;br /&gt;
  2201. &lt;span style="font-size: large;"&gt;4.Leveraging Social Networks for P2P Content-Based File Sharing in Disconnected MANETs&lt;/span&gt;&lt;br /&gt;
  2202. &lt;br /&gt;
  2203. &lt;span style="font-size: large;"&gt;5.Multicast Capacity in MANET with Infrastructure Support&lt;/span&gt;&lt;br /&gt;
  2204. &lt;br /&gt;
  2205. &lt;span style="font-size: large;"&gt;6.Optimally Adaptive Power-Saving Protocols for Ad Hoc Networks Using the Hyper Quorum System&lt;/span&gt;&lt;br /&gt;
  2206. &lt;br /&gt;
  2207. &lt;span style="font-size: large;"&gt;7.PSR: A Lightweight Proactive Source Routing Protocol For Mobile Ad Hoc Networks&lt;/span&gt;&lt;br /&gt;
  2208. &lt;br /&gt;
  2209. &lt;span style="font-size: large;"&gt;8.PSR: A Lightweight Proactive Source Routing Protocol For Mobile Ad Hoc Networks&lt;/span&gt;&lt;br /&gt;
  2210. &lt;br /&gt;
  2211. &lt;span style="font-size: large;"&gt;9.Security Enhancements for Mobile Ad Hoc Networks with Trust Management Using Uncertain Reasoning&lt;/span&gt;&lt;br /&gt;
  2212. &lt;br /&gt;
  2213. &lt;span style="font-size: large;"&gt;10.Video Dissemination over Hybrid Cellular and Ad Hoc Networks&lt;/span&gt;&lt;br /&gt;
  2214. &lt;span style="font-size: x-large;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
  2215. &lt;span style="font-size: x-large;"&gt;&lt;b&gt;MESH&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
  2216. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2217. &lt;span style="font-size: large;"&gt;1. Autonomous Mobile Mesh Networks&lt;/span&gt;&lt;br /&gt;
  2218. &lt;br /&gt;
  2219. &lt;span style="font-size: large;"&gt;2.Location-Aware Chord-Based Overlay for Wireless Mesh Networks&lt;/span&gt;&lt;br /&gt;
  2220. &lt;span style="font-size: x-large;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
  2221. &lt;span style="font-size: x-large;"&gt;&lt;b&gt;VANET&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
  2222. &lt;span style="font-size: large;"&gt;1.A Disturbance-Adaptive Design for VANET-Enabled Vehicle Platoon&lt;/span&gt;&lt;br /&gt;
  2223. &lt;br /&gt;
  2224. &lt;span style="font-size: large;"&gt;2.Efficient Privacy-Preserving Authentication for Vehicular Ad Hoc Networks&lt;/span&gt;&lt;br /&gt;
  2225. &lt;br /&gt;
  2226. &lt;span style="font-size: large;"&gt;3.Safety-Message Broadcast in Vehicular Ad Hoc Networks Based on Protocol Sequences&lt;/span&gt;&lt;br /&gt;
  2227. &lt;span style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2228. &lt;span style="font-size: x-large;"&gt;wireless networks&lt;/span&gt;&lt;br /&gt;
  2229. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2230. &lt;span style="font-size: large;"&gt;1.Approach-and-Roam (AaR): A Geographic Routing Scheme for Delay/Disruption Tolerant Networks&lt;/span&gt;&lt;br /&gt;
  2231. &lt;br /&gt;
  2232. &lt;span style="font-size: large;"&gt;2.A QoS-Oriented Distributed Routing Protocol for Hybrid Wireless Networks&lt;/span&gt;&lt;br /&gt;
  2233. &lt;br /&gt;
  2234. &lt;span style="font-size: large;"&gt;3.Cooperative Caching for Efficient Data Access in Disruption Tolerant Networks&lt;/span&gt;&lt;br /&gt;
  2235. &lt;br /&gt;
  2236. &lt;span style="font-size: large;"&gt;4.Efficient Location Privacy-Aware Forwarding in Opportunistic Mobile Networks&lt;/span&gt;&lt;br /&gt;
  2237. &lt;br /&gt;
  2238. &lt;span style="font-size: large;"&gt;5.Neighbor Table Based Shortcut Tree Routing in ZigBee Wireless Networks&lt;/span&gt;&lt;br /&gt;
  2239. &lt;br /&gt;
  2240. &lt;span style="font-size: large;"&gt;6.Secure Data Retrieval for Decentralized Disruption-Tolerant Military Networks&lt;/span&gt;&lt;br /&gt;
  2241. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2242. &lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="font-size: x-large;"&gt;Wireless Sensor Networks &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
  2243. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2244. &lt;span style="font-size: large;"&gt;1.An Alternative Perspective on Utility Maximization in Energy-Harvesting Wireless Sensor Networks&lt;/span&gt;&lt;br /&gt;
  2245. &lt;br /&gt;
  2246. &lt;span style="font-size: large;"&gt;2.An Energy-Balanced Routing Method Based on Forward-Aware Factor for Wireless Sensor Networks&lt;/span&gt;&lt;br /&gt;
  2247. &lt;br /&gt;
  2248. &lt;span style="font-size: large;"&gt;3.An Energy-Efficient Mobile-Sink Path Selection Strategy for Wireless Sensor Networks&lt;/span&gt;&lt;br /&gt;
  2249. &lt;br /&gt;
  2250. &lt;span style="font-size: large;"&gt;4.A Two-Phase Dispatch Heuristic to Schedule the Movement of Multi-Attribute Mobile Sensors in a Hybrid Wireless Sensor Network&lt;/span&gt;&lt;br /&gt;
  2251. &lt;br /&gt;
  2252. &lt;span style="font-size: large;"&gt;5.Constructing Load-Balanced Data Aggregation Trees in Probabilistic Wireless Sensor Networks&lt;/span&gt;&lt;br /&gt;
  2253. &lt;br /&gt;
  2254. &lt;span style="font-size: large;"&gt;6.Contiguous Link Scheduling for Data Aggregation in Wireless Sensor Networks&lt;/span&gt;&lt;br /&gt;
  2255. &lt;br /&gt;
  2256. &lt;span style="font-size: large;"&gt;7.R3E: Reliable Reactive Routing Enhancement for Wireless Sensor Networks&lt;/span&gt;&lt;br /&gt;
  2257. &lt;br /&gt;
  2258. &lt;span style="font-size: large;"&gt;8.Sleep Scheduling for Geographic Routing in Duty-Cycled Mobile Sensor Networks&lt;/span&gt;&lt;br /&gt;
  2259. &lt;br /&gt;
  2260. &lt;span style="font-size: large;"&gt;9.WizSync: Exploiting Wi-Fi Infrastructure for Clock Synchronization in Wireless Sensor Networks&lt;/span&gt;&lt;br /&gt;
  2261. &lt;br /&gt;
  2262. &lt;br /&gt;
  2263. &lt;span style="color: #cc0000;"&gt;&lt;br /&gt;&lt;/span&gt;
  2264. &lt;span style="color: #cc0000;"&gt;&lt;span style="font-size: large;"&gt;&lt;a href="http://www.ebinephrem.com/" target="_blank"&gt;CONTACT ME&amp;nbsp;&lt;/a&gt; :&lt;a href="mailto:me@ebinephrem.com" target="_blank"&gt; MAIL ME&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  2265. &lt;br /&gt;
  2266. &lt;span style="font-size: large;"&gt;&lt;a href="http://goo.gl/T9zLh3" target="_blank"&gt;PROJECT ENQIRY FORM &amp;nbsp;&lt;/a&gt; &lt;/span&gt;&lt;/div&gt;
  2267. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Analysis of the Effect of Vignetting on MIMO Optical Wireless Systems Using Spatial OFDM</title><link>http://servforu.blogspot.com/2014/06/analysis-of-effect-of-vignetting-on.html</link><category>2014</category><category>Code</category><category>COMMUNICATION SYSTEMS</category><category>Embedded</category><category>final year</category><category>FULL</category><category>IEEE</category><category>M.E</category><category>M.TECH</category><category>MATLAB</category><category>MIMO</category><category>networks</category><category>OFDM</category><category>Optical</category><category>Project</category><category>saco</category><category>seminar</category><category>Wireless sensor Networks</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 30 Jun 2014 02:19:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-7202081694168913549</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2268. &lt;div style="text-align: justify;"&gt;
  2269. Abstract—The performance of pixelated multiple-input multiple output optical wireless communication systems can be impaired by vignetting, which is the gradual fall-off in illumination at the edges of a received image. This paper investigates the effect of vignetting for a pixelated system using spatial orthogonal frequency division multiplexing (OFDM). Our analysis shows that vignetting causes attenuation and intercarrier interference (ICI) in the spatial frequency domain. MATLAB simulations indicate that for a given constellation size, spatial asymmetrically clipped optical OFDM (SACO-OFDM) is more robust to vignetting than spatial dc biased opticalOFDM (SDCO-OFDM).Moreover, for the case of SDCO-OFDM, the very large zeroth subcarrier causes severe ICI in its neighbourhood causing flattening of the bit error rate (BER) curves. We show that this BER floor can be eliminated by leaving some of the lower spatial frequency subcarriers unused. The BER performance can also be improved by applying a vignetting estimation and equalization scheme. Finally, it is shown that equalized SACO-OFDM with 16-QAM has the same overall data rate as equalized SDCO-OFDM using 4-QAM, but requires less optical power.&lt;/div&gt;
  2270. &lt;div style="text-align: justify;"&gt;
  2271. &lt;br /&gt;&lt;/div&gt;
  2272. &lt;div style="text-align: justify;"&gt;
  2273. &lt;br /&gt;&lt;/div&gt;
  2274. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2275. &lt;a href="http://3.bp.blogspot.com/-mqKAfVwNXZ4/U7EqvjRk2NI/AAAAAAAAIFU/xzdowty0lkQ/s1600/Block+diagram+of+a+spatial+OFDM+system.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-mqKAfVwNXZ4/U7EqvjRk2NI/AAAAAAAAIFU/xzdowty0lkQ/s1600/Block+diagram+of+a+spatial+OFDM+system.bmp" height="234" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
  2276. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2277. &lt;br /&gt;&lt;/div&gt;
  2278. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2279. Block diagram of a spatial OFDM system&lt;/div&gt;
  2280. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2281. &lt;br /&gt;&lt;/div&gt;
  2282. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2283. &lt;a href="http://2.bp.blogspot.com/-8QjGmIFKp8M/U7EqvjdcZQI/AAAAAAAAIFQ/LSszRg5EZyM/s1600/Illustration+of+a+pixelated+MIMO+wireless+communication+system..bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-8QjGmIFKp8M/U7EqvjdcZQI/AAAAAAAAIFQ/LSszRg5EZyM/s1600/Illustration+of+a+pixelated+MIMO+wireless+communication+system..bmp" height="240" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
  2284. &lt;br /&gt;
  2285. &lt;div style="text-align: justify;"&gt;
  2286. &lt;br /&gt;&lt;/div&gt;
  2287. &lt;div style="text-align: justify;"&gt;
  2288. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Illustration of a pixelated MIMO wireless communication system&lt;/div&gt;
  2289. &lt;div style="text-align: justify;"&gt;
  2290. &lt;br /&gt;&lt;/div&gt;
  2291. &lt;div style="text-align: justify;"&gt;
  2292. &lt;br /&gt;&lt;/div&gt;
  2293. &lt;div style="text-align: justify;"&gt;
  2294. IEEE PAPER :&lt;a href="http://ieeexplore.ieee.org/xpl/articleDetails.jsp?tp=&amp;amp;arnumber=6681890&amp;amp;ranges%3D2014_2014_p_Publication_Year%26subscribed%3Dtrue%26queryText%3Dofdm"&gt;http://ieeexplore.ieee.org/xpl/articleDetails.jsp?tp=&amp;amp;arnumber=6681890&amp;amp;ranges%3D2014_2014_p_Publication_Year%26subscribed%3Dtrue%26queryText%3Dofdm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FULL MATLAB CODE AVAILABLE&amp;nbsp;&lt;/div&gt;
  2295. &lt;div style="text-align: justify;"&gt;
  2296. &lt;br /&gt;&lt;/div&gt;
  2297. &lt;div style="text-align: justify;"&gt;
  2298. CONTACT FOR PROJECTS&amp;nbsp;&lt;/div&gt;
  2299. &lt;/div&gt;
  2300. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://3.bp.blogspot.com/-mqKAfVwNXZ4/U7EqvjRk2NI/AAAAAAAAIFU/xzdowty0lkQ/s72-c/Block+diagram+of+a+spatial+OFDM+system.bmp" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Hard Reset and Soft Reset for Nokia Lumia 930 Lumia 630</title><link>http://servforu.blogspot.com/2014/06/hard-reset-and-soft-reset-for-nokia-lumia930.html</link><category>bricked</category><category>Code</category><category>hang</category><category>hard</category><category>hard reset</category><category>How to</category><category>Lumia 625</category><category>Lumia 630</category><category>Lumia 930</category><category>NOKIA</category><category>nokia Lumia</category><category>Phone</category><category>reset</category><category>secret codes</category><category>Smartphones</category><category>soft reset</category><category>tips</category><category>Tricks</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 18 Jun 2014 20:52:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-6459622574372168</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2301. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2302. &lt;/div&gt;
  2303. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2304. &lt;/div&gt;
  2305. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2306. &lt;/div&gt;
  2307. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2308. &lt;/div&gt;
  2309. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2310. &lt;/div&gt;
  2311. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2312. &lt;/div&gt;
  2313. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2314. &lt;/div&gt;
  2315. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2316. &lt;span style="font-size: large;"&gt;&lt;a href="http://2.bp.blogspot.com/-PxEtFeEhZo4/U6Jc5ev6HeI/AAAAAAAAICw/dWWnp1RZ6Jw/s1600/Nokia-Lumia-930-Beauty2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;NOKIA has shipped a range of new Lumia Phones including Lumia 930 Lumia 620 &lt;img border="0" src="http://2.bp.blogspot.com/-PxEtFeEhZo4/U6Jc5ev6HeI/AAAAAAAAICw/dWWnp1RZ6Jw/s1600/Nokia-Lumia-930-Beauty2.jpg" height="320" width="640" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
  2317. &lt;br /&gt;
  2318. &lt;br /&gt;
  2319. &lt;span style="font-size: large;"&gt;If you simply want to return phone to &lt;b&gt;factory status&lt;/b&gt;, just go to&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  2320. &lt;br /&gt;
  2321. &lt;span style="font-size: large;"&gt;&lt;b&gt;Settings -&amp;gt; About, and choose Reset Your Phone&lt;/b&gt;.&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
  2322. &lt;br /&gt;
  2323. &lt;br /&gt;
  2324. &lt;span style="font-size: large;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;And if your phone is stuck when using some applications like whatsapp the phone may get hang this time use the soft reset expained below&lt;/span&gt;&lt;br /&gt;
  2325. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2326. &lt;br /&gt;
  2327. &lt;span style="font-size: large;"&gt;&lt;strong&gt;SOFT RESET for Lumia 930,(Lumia 900,Lumia 920 &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
  2328. &lt;span style="font-size: large;"&gt;
  2329. &lt;/span&gt;&lt;ul&gt;
  2330. &lt;li&gt;&lt;span style="font-size: large;"&gt;
  2331.  Press and hold the volume keys, power button and camera together for 3-5 seconds&lt;/span&gt;&lt;/li&gt;
  2332. &lt;li&gt;&lt;span style="font-size: large;"&gt;
  2333.  The phone should soft-reset .&amp;nbsp; some phones have 3 vibrations&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
  2334. &lt;/ul&gt;
  2335. &lt;span style="font-size: large;"&gt;&lt;span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19px;"&gt;This option restores the .ini files from the ROM.&lt;/span&gt;&lt;/span&gt;
  2336. &lt;span style="font-size: large;"&gt;&lt;span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19px;"&gt;Does not erase data (photos, videos,&amp;nbsp;&lt;/span&gt;&lt;span class="IL_AD" id="IL_AD6" style="background-color: white; border-color: initial; border-image: initial; border-style: initial; border-width: 0px; color: #444444; font-family: Tahoma; line-height: 19px; margin: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding: 0px;"&gt;documents&lt;/span&gt;&lt;span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19px;"&gt;) or&amp;nbsp;&lt;/span&gt;&lt;span class="IL_AD" id="IL_AD3" style="background-color: white; border-color: initial; border-image: initial; border-style: initial; border-width: 0px; color: #444444; font-family: Tahoma; line-height: 19px; margin: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding: 0px;"&gt;applications&lt;/span&gt;&lt;span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19px;"&gt;&amp;nbsp;from a third party.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  2337. &lt;span style="font-size: large;"&gt;&lt;span style="background-color: white; color: #444444; font-family: Tahoma; line-height: 19px;"&gt;&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
  2338. &lt;span style="font-size: large;"&gt;&lt;strong&gt;Lumia 630,Lumia 625&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
  2339. &lt;span style="font-size: large;"&gt;
  2340. &lt;/span&gt;&lt;ul&gt;
  2341. &lt;li&gt;&lt;span style="font-size: large;"&gt;
  2342.  Press and hold the volume keys and power button together for 3-5 seconds&lt;/span&gt;&lt;/li&gt;
  2343. &lt;li&gt;&lt;span style="font-size: large;"&gt;
  2344.  The phone should soft-reset&lt;/span&gt;&lt;/li&gt;
  2345. &lt;/ul&gt;
  2346. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2347. &lt;span style="font-size: large;"&gt;In some phones press and hold the POWER BUTTON FOR 10 Seconds &lt;/span&gt;&lt;/div&gt;
  2348. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://2.bp.blogspot.com/-PxEtFeEhZo4/U6Jc5ev6HeI/AAAAAAAAICw/dWWnp1RZ6Jw/s72-c/Nokia-Lumia-930-Beauty2.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>HOTSPOT Wi-Fi share with Android Devices from Linux Mint 17 Laptops</title><link>http://servforu.blogspot.com/2014/06/hotspot-wi-fi-share-with-android_18.html</link><category>acess point</category><category>ANDROID</category><category>ap-hotspot</category><category>How to</category><category>kde</category><category>Linux</category><category>linux mint 17</category><category>network manager</category><category>package</category><category>plasma</category><category>share</category><category>software</category><category>synaptic</category><category>tips</category><category>Tricks</category><category>WiFi</category><category>wifi hotspot</category><category>wifi sharing</category><category>working</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 18 Jun 2014 00:32:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-7902396566055544101</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2349. &lt;br /&gt;
  2350. &lt;br /&gt;
  2351. &lt;span style="font-size: large;"&gt;This is a quick tip to make your laptop as wi-fi hotspot . some people using ap-hotspot which doesnt work for me , so i found this new method which works pretty fine for me&lt;/span&gt;&lt;br /&gt;
  2352. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2353. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2354. &lt;span style="font-size: large;"&gt;Follow the steps&lt;/span&gt;&lt;br /&gt;
  2355. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2356. &lt;span style="font-size: large;"&gt;1.Open Terminal&lt;/span&gt;&lt;br /&gt;
  2357. &lt;span style="font-size: large;"&gt;2. run the command $ sudo synaptic &lt;/span&gt;&lt;br /&gt;
  2358. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2359. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2360. &lt;span style="font-size: large;"&gt;&lt;a href="http://3.bp.blogspot.com/-Dt7PZnuRubM/U6E9dSCdP8I/AAAAAAAAIB4/jMIMvNZA_Eg/s1600/Screenshot+from+2014-06-18+12:44:45.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-Dt7PZnuRubM/U6E9dSCdP8I/AAAAAAAAIB4/jMIMvNZA_Eg/s1600/Screenshot+from+2014-06-18+12:44:45.png" height="74" width="640" /&gt;&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
  2361. &lt;div class="" style="clear: both; text-align: left;"&gt;
  2362. &lt;span style="font-size: large;"&gt;3 in synaptic search for plasma-nm&lt;/span&gt;&lt;/div&gt;
  2363. &lt;div class="" style="clear: both; text-align: left;"&gt;
  2364. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2365. &lt;div class="" style="clear: both; text-align: left;"&gt;
  2366. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2367. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2368. &lt;span style="font-size: large;"&gt;&lt;a href="http://3.bp.blogspot.com/-R_9fDHw05pQ/U6E9dpEbfwI/AAAAAAAAIB8/YbTQ_mh7BG0/s1600/Screenshot+from+2014-06-18+12:44:59.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-R_9fDHw05pQ/U6E9dpEbfwI/AAAAAAAAIB8/YbTQ_mh7BG0/s1600/Screenshot+from+2014-06-18+12:44:59.png" height="112" width="640" /&gt;&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
  2369. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2370. &lt;br /&gt;&lt;/div&gt;
  2371. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2372. &lt;span style="font-size: large;"&gt;&lt;a href="http://4.bp.blogspot.com/-KblTY6mmn-M/U6E9d2o3uxI/AAAAAAAAICA/UBUvbCESsj0/s1600/Screenshot+from+2014-06-18+12:45:36.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-KblTY6mmn-M/U6E9d2o3uxI/AAAAAAAAICA/UBUvbCESsj0/s1600/Screenshot+from+2014-06-18+12:45:36.png" height="184" width="640" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
  2373. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2374. &lt;span style="font-size: large;"&gt;4. right click on the plasma-nm and mark for installation&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  2375. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2376. &lt;span style="font-size: large;"&gt;5. Afrer installation finished use Alt + f2&lt;/span&gt;&lt;br /&gt;
  2377. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2378. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2379. &lt;span style="font-size: large;"&gt;&lt;a href="http://4.bp.blogspot.com/-T3pTldrvPxE/U6E-o3PiI8I/AAAAAAAAICQ/yUMhDneCGrE/s1600/kd.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-T3pTldrvPxE/U6E-o3PiI8I/AAAAAAAAICQ/yUMhDneCGrE/s1600/kd.png" height="144" width="640" /&gt;&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
  2380. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2381. &lt;br /&gt;&lt;/div&gt;
  2382. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2383. &lt;span style="font-size: large;"&gt;kde-nm-connection-editor&lt;/span&gt;&lt;/div&gt;
  2384. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2385. &lt;br /&gt;&lt;/div&gt;
  2386. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2387. &lt;span style="font-size: large;"&gt;6. select wifi(shared) From the connection manager window&lt;/span&gt;&lt;/div&gt;
  2388. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2389. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2390. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2391. &lt;span style="font-size: large;"&gt;configure with custom names and wPA2 passkeys&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  2392. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2393. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2394. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2395. &lt;span style="font-size: large;"&gt;&lt;a href="http://1.bp.blogspot.com/-wTxl6eDVlJo/U6E_REzw-3I/AAAAAAAAICY/twaImgTX5e4/s1600/Screenshot+from+2014-06-18+12:55:33.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-wTxl6eDVlJo/U6E_REzw-3I/AAAAAAAAICY/twaImgTX5e4/s1600/Screenshot+from+2014-06-18+12:55:33.png" height="337" width="400" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
  2396. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2397. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2398. &lt;div class="separator" style="clear: both; text-align: left;"&gt;
  2399. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2400. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2401. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://3.bp.blogspot.com/-Dt7PZnuRubM/U6E9dSCdP8I/AAAAAAAAIB4/jMIMvNZA_Eg/s72-c/Screenshot+from+2014-06-18+12:44:45.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total></item><item><title>Edge Detection Technique by Fuzzy Logic CLA and Canny Edge Detector u sing Fuzzy Image Processing</title><link>http://servforu.blogspot.com/2014/06/edge-detection-technique-by-fuzzy-logic.html</link><category>2014</category><category>Burst Media</category><category>digital</category><category>edge detection</category><category>git</category><category>IEEE</category><category>IJRITCC</category><category>image</category><category>image processing</category><category>Journal</category><category>MATLAB</category><category>Program</category><category>programming</category><category>Project</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 17 Jun 2014 10:42:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-3465053069205758414</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2402. &lt;div style="text-align: justify;"&gt;
  2403. &lt;span style="font-size: large;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  2404. &lt;div style="text-align: justify;"&gt;
  2405. &lt;span style="font-size: large;"&gt;Download Full paper at &lt;a href="http://ijritcc.org/IJRITCC%20Vol_2%20Issue_4/Edge%20Detection%20Technique%20by%20Fuzzy%20Logic%20CLA%20and%20Canny%20Edge%20Detector%20using%20Fuzzy%20Image%20Processing.pdf"&gt;IJRITCC&lt;/a&gt; &lt;/span&gt;&lt;/div&gt;
  2406. &lt;div style="text-align: justify;"&gt;
  2407. &lt;span style="font-size: large;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  2408. &lt;div style="text-align: justify;"&gt;
  2409. &lt;span style="font-size: large;"&gt;Edge  detection  in  an  image  is  an  major  issue  in  image  processing.Many  hidden objects  can  be  identified  using  edge  detection which gives major clue in identifying actual truth behind the images. In this paper, double thresholding method of edge detection along with canny edge detector is used to identify the small objects in an images.Here threshold plays a major role which extracts the clear image from unclear picture&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
  2410. &lt;div style="text-align: justify;"&gt;
  2411. &amp;nbsp;&lt;/div&gt;
  2412. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2413. &lt;a href="http://3.bp.blogspot.com/-TaUqQgY-LHU/U6B977_nNcI/AAAAAAAAIBo/WuGWCB7ZLgA/s1600/canny.tif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-TaUqQgY-LHU/U6B977_nNcI/AAAAAAAAIBo/WuGWCB7ZLgA/s1600/canny.tif" height="212" width="640" /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
  2414. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2415. CANNY EDGE DETECTION USING FUSSY LOGIC &lt;/div&gt;
  2416. &lt;div style="text-align: justify;"&gt;
  2417. &amp;nbsp;&lt;/div&gt;
  2418. &lt;div style="text-align: justify;"&gt;
  2419. &amp;nbsp;&lt;/div&gt;
  2420. &lt;div style="text-align: justify;"&gt;
  2421. Conclusion :&amp;nbsp; &lt;/div&gt;
  2422. &lt;div style="text-align: justify;"&gt;
  2423. &amp;nbsp;&lt;/div&gt;
  2424. &lt;div style="text-align: justify;"&gt;
  2425. &lt;span style="font-size: large;"&gt;Because
  2426.  of  the uncertainties  that exist in many aspects of image processing&amp;nbsp;
  2427. , and as image are always   dynamic , fuzzy   processing   is  
  2428. desirable . These uncertainties include additive and non- additive noise
  2429. in low level   image   processing , imprecision   in   the  
  2430. assumptions underlying the  algorithms , and&amp;nbsp; ambiguities  in
  2431. interpretation during   high   level   image   processing . For   the  
  2432. common process of edge  detection usually  models edges as intensity
  2433. ridges . Finally by increasing the threshold value greater than 50 and
  2434. contrast can be improved .&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
  2435. &lt;div style="text-align: justify;"&gt;
  2436. &lt;span style="font-size: large;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  2437. &lt;div style="text-align: justify;"&gt;
  2438. &lt;span style="font-size: large;"&gt;And here is the full program in matlab&amp;nbsp; for the same&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  2439. &lt;div style="text-align: justify;"&gt;
  2440. &lt;span style="font-size: large;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  2441. &lt;div style="text-align: justify;"&gt;
  2442. &lt;span style="font-size: large;"&gt;**************************************************&lt;/span&gt;&lt;/div&gt;
  2443. &lt;div style="text-align: justify;"&gt;
  2444. &lt;span style="font-size: large;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  2445. &lt;div style="text-align: justify;"&gt;
  2446. &lt;span style="font-size: large;"&gt;%%Start of coding, Symbols have their usual meaning&amp;nbsp;
  2447. &lt;br /&gt;&lt;br /&gt;%% Input Image&amp;nbsp;
  2448. &lt;br /&gt;clear all;
  2449. &lt;br /&gt;clc;
  2450. &lt;br /&gt;A=[];
  2451. &lt;br /&gt;piA=[];
  2452. &lt;br /&gt;%Using 16 fuzzy edge templets that show the possible direction of the edge
  2453. &lt;br /&gt;%s in the image and then calculating the divergence between the origin
  2454. &lt;br /&gt;%image and the 16 fuzzy templets.
  2455. &lt;br /&gt;&lt;br /&gt;%Take any one example and uncomment it ;
  2456. &lt;br /&gt;%Reading the pixel of the image using imread function of the matlab
  2457. &lt;br /&gt;% %for rice image
  2458. &lt;br /&gt;%&amp;nbsp; III = rgb2gray(imread('rice.tif'));%name of the image
  2459. &lt;br /&gt;% II = imcrop(III,[80 30 240 200]);
  2460. &lt;br /&gt;%&amp;nbsp;
  2461. &lt;br /&gt;&amp;nbsp;%III = rgb2gray(imread('self_fig.tif'));%name of the image
  2462. &lt;br /&gt;%II = imcrop(III,[50 40 650 400]);
  2463. &lt;br /&gt;&amp;nbsp;III = rgb2gray(imread('canny1.tif'));%name of the image
  2464. &lt;br /&gt;&amp;nbsp;II = imcrop(III,[5 5 560 450]);
  2465. &lt;br /&gt;%%For Tree image;
  2466. &lt;br /&gt;&amp;nbsp;%III = rgb2gray(imread('1.2.03.tiff'));%name of the image
  2467. &lt;br /&gt;% %II = imcrop(III,[35 94 430 355]);
  2468. &lt;br /&gt;&lt;br /&gt;&amp;nbsp; %III = imread('1.4.09.tiff');%name of the image
  2469. &lt;br /&gt;% %For lena photo
  2470. &lt;br /&gt;% III = rgb2gray(imread('lena.tiff'));%name of the image
  2471. &lt;br /&gt;%&amp;nbsp; II = imcrop(III,[35 94 430 355]);
  2472. &lt;br /&gt;&lt;br /&gt;I = double(II);
  2473. &lt;br /&gt;[r,k] = size(I);%no of row and column is I
  2474. &lt;br /&gt;&lt;br /&gt;%% Selection of the 16 fuzzy templets
  2475. &lt;br /&gt;a=0.3; b=0.8;
  2476. &lt;br /&gt;t1 = [a a a; 0 0 0; b b b];
  2477. &lt;br /&gt;t2 = [a a b; a b 0; b 0 0];
  2478. &lt;br /&gt;t3 = [b b b; 0 0 0; a a a];
  2479. &lt;br /&gt;t4 = [b a a; 0 b a; 0 0 b];
  2480. &lt;br /&gt;t5 = [b a 0;b a 0; b a 0];
  2481. &lt;br /&gt;t6 = [a 0 b;a 0 b; a 0 b];
  2482. &lt;br /&gt;t7 = [0 0 0; b b b; a a a];
  2483. &lt;br /&gt;t8 = [0 b a; 0 b a; 0 b a];
  2484. &lt;br /&gt;t9 = [a a a; b b b;0 0 0];&amp;nbsp;
  2485. &lt;br /&gt;t10 = [a b 0; a b 0;a b 0];
  2486. &lt;br /&gt;t11 = [0 0 0; a a a;b b b];
  2487. &lt;br /&gt;t12 = [0 a b; 0 a b; 0 a b];
  2488. &lt;br /&gt;t13 = [b b b; a a a; 0 0 0];
  2489. &lt;br /&gt;t14 = [b 0 a; b 0 a; b 0 a];
  2490. &lt;br /&gt;t15 = [b 0 0; b 0 a; a a b];
  2491. &lt;br /&gt;t16 = [0 0 b; 0 b a; b a a];
  2492. &lt;br /&gt;&lt;br /&gt;%% Initization of algo
  2493. &lt;br /&gt;xmax = max(max(max(I)));%maximum pixel/element of the image;
  2494. &lt;br /&gt;%converting into the fuzzy domain from the original image;
  2495. &lt;br /&gt;fim = I/xmax;%fim is the image data of the input image in the fuzzy domain,all value of the fim in the interval of [0 1];
  2496. &lt;br /&gt;%initializing the edge image as zeros matrix i.e black box;
  2497. &lt;br /&gt;fedgeim = zeros(r,k);%in fuzzy domain
  2498. &lt;br /&gt;%Increaing the boreder line of the iamge i.e to increase the row and column
  2499. &lt;br /&gt;%by 2 in the first and last by taking the mirror image of the immediate
  2500. &lt;br /&gt;%existing rows and columns respectively;
  2501. &lt;br /&gt;r1 = fim(2,:);%Copy of all element in the 2nd row of fim
  2502. &lt;br /&gt;r2 = fim(r-1,:);
  2503. &lt;br /&gt;c1 = fim(:,2);
  2504. &lt;br /&gt;c2 = fim(:,k-1);
  2505. &lt;br /&gt;b1 = [0 r1 0];
  2506. &lt;br /&gt;b2 = [0 r2 0];
  2507. &lt;br /&gt;b3 = [c1 fim c2];
  2508. &lt;br /&gt;bfim = [b1;b3;b2];%bfim = Border fuzzy image matix
  2509. &lt;br /&gt;bfim(1,1) = fim(1,1);
  2510. &lt;br /&gt;bfim(r+2, k+2) = fim(r,k);
  2511. &lt;br /&gt;bfim(1,k+2) = fim(1,k);
  2512. &lt;br /&gt;bfim(r+2,1) = fim(r,1);
  2513. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;%finding Hesitation degree or intuitionstic fuzzy index
  2514. &lt;br /&gt;%c = input("Enter the value of pi&amp;nbsp; ");
  2515. &lt;br /&gt;c= 0.2;
  2516. &lt;br /&gt;pibfim = c*(1-bfim);
  2517. &lt;br /&gt;pit1 = c*(1-t1);pit2 = c*(1-t2);pit3 = c*(1-t3);pit4 = c*(1-t4);pit5 = c*(1-t5);pit6 = c*(1-t6);pit7 = c*(1-t7);
  2518. &lt;br /&gt;pit8 = c*(1-t8);pit9 = c*(1-t9);pit10 = c*(1-t10);pit11 = c*(1-t11);pit12 = c*(1-t12);pit13 = c*(1-t13);
  2519. &lt;br /&gt;pit14 = c*(1-t14);pit15 = c*(1-t15);pit16 = c*(1-t16);
  2520. &lt;br /&gt;&lt;br /&gt;%Calculation of the maximum of the divergance value between the 16 templets
  2521. &lt;br /&gt;%and the original image of the same size let the original image denoted by
  2522. &lt;br /&gt;%A this A arew formed by taking the 3x3 matrix in the border matix i.e from
  2523. &lt;br /&gt;%bfim
  2524. &lt;br /&gt;%Considering the fuzzy templats as mask of size 3x3 and then we will slide
  2525. &lt;br /&gt;%this matix&amp;nbsp; in the fuzzy matrix i.e in the fim not inj the bfim
  2526. &lt;br /&gt;for i = 2:r+1
  2527. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for j = 2:k+1
  2528. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A = [bfim(i-1,j-1) bfim(i,j-1) bfim(i+1,j-1) ; bfim(i-1,j) bfim(i,j) bfim(i+1,j) ; bfim(i-1,j+1) bfim(i,j+1) bfim(i+1,j+1)];
  2529. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; piA = [pibfim(i-1,j-1) pibfim(i,j-1) pibfim(i+1,j-1) ; pibfim(i-1,j) pibfim(i,j) pibfim(i+1,j) ; pibfim(i-1,j+1) pibfim(i,j+1) pibfim(i+1,j+1)];
  2530. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  2531. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %3x3 matrix for determining the divergence with the tempelets t1,
  2532. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %t2...15,16.
  2533. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %we calculate the divergence of 3x3 matrix at a time and then
  2534. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %taking the minimun element of the matrix for all 16 fuzzy
  2535. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %tempelets;
  2536. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %d1 is a matrix of 3x3 = divergence with original matix and
  2537. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %fuzzy templets 1
  2538. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d1 = 2 - (1-A+t1).*exp(A-t1)-(1-t1+A).*exp(t1-A)+ 2- (1-(A-t1)+pit1-piA).*exp(A-t1-(pit1-piA))-(1-(pit1-piA)+A-t1).*exp(pit1-piA-(A-t1));
  2539. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min1 =min(min(d1));
  2540. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %d2 is the matix of 3x3 = divergence matix with orinigal matrix and fuzzy tempelts 2.&amp;nbsp;
  2541. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d2 = 2 - (1-A+t2).*exp(A-t2)-(1-t2+A).*exp(t2-A)+2-(1-(A-t2)+pit2-piA).*exp(A-t2-(pit2-piA))-(1-(pit2-piA)+A-t2).*exp(pit2-piA-(A-t2));
  2542. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min2 =min(min(d2));
  2543. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d3 = 2 - (1-A+t3).*exp(A-t3)-(1-t3+A).*exp(t3-A)+2-(1-(A-t3)+pit3-piA).*exp(A-t3-(pit3-piA))-(1-(pit3-piA)+A-t3).*exp(pit3-piA-(A-t3));
  2544. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min3 =min(min(d3));
  2545. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d4 = 2 - (1-A+t4).*exp(A-t4)-(1-t4+A).*exp(t4-A)+2-(1-(A-t4)+pit4-piA).*exp(A-t4-(pit4-piA))-(1-(pit4-piA)+A-t4).*exp(pit4-piA-(A-t4));
  2546. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min4 =min(min(d4));
  2547. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d5 = 2 - (1-A+t5).*exp(A-t5)-(1-t5+A).*exp(t5-A)+2-(1-(A-t5)+pit5-piA).*exp(A-t5-(pit5-piA))-(1-(pit5-piA)+A-t5).*exp(pit5-piA-(A-t5));
  2548. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min5 =min(min(d5));
  2549. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d6 = 2 - (1-A+t6).*exp(A-t6)-(1-t6+A).*exp(t6-A)+2-(1-(A-t6)+pit6-piA).*exp(A-t6-(pit6-piA))-(1-(pit6-piA)+A-t6).*exp(pit6-piA-(A-t6));
  2550. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min6 =min(min(d6));
  2551. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d7 = 2 - (1-A+t7).*exp(A-t7)-(1-t7+A).*exp(t7-A)+2-(1-(A-t7)+pit7-piA).*exp(A-t7-(pit7-piA))-(1-(pit7-piA)+A-t7).*exp(pit7-piA-(A-t7));
  2552. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min7 =min(min(d7));
  2553. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d8 = 2 - (1-A+t8).*exp(A-t8)-(1-t8+A).*exp(t8-A)+2-(1-(A-t8)+pit8-piA).*exp(A-t8-(pit8-piA))-(1-(pit8-piA)+A-t8).*exp(pit8-piA-(A-t8));
  2554. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min8 =min(min(d8));
  2555. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d9 = 2 - (1-A+t9).*exp(A-t9)-(1-t9+A).*exp(t9-A)+2-(1-(A-t9)+pit9-piA).*exp(A-t9-(pit9-piA))-(1-(pit9-piA)+A-t9).*exp(pit9-piA-(A-t9));
  2556. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min9 =min(min(d9));
  2557. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d10 = 2 - (1-A+t10).*exp(A-t10)-(1-t10+A).*exp(t10-A)+2-(1-(A-t10)+pit10-piA).*exp(A-t10-(pit10-piA))-(1-(pit10-piA)+A-t10).*exp(pit10-piA-(A-t10));
  2558. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min10 =min(min(d10));
  2559. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d11 = 2 - (1-A+t11).*exp(A-t11)-(1-t11+A).*exp(t11-A)+2-(1-(A-t11)+pit11-piA).*exp(A-t11-(pit11-piA))-(1-(pit11-piA)+A-t11).*exp(pit11-piA-(A-t11));
  2560. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min11 =min(min(d11));
  2561. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d12 = 2 - (1-A+t12).*exp(A-t12)-(1-t12+A).*exp(t12-A)+2-(1-(A-t12)+pit12-piA).*exp(A-t12-(pit12-piA))-(1-(pit12-piA)+A-t12).*exp(pit12-piA-(A-t12));
  2562. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min12 =min(min(d12));
  2563. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d13 = 2 - (1-A+t13).*exp(A-t13)-(1-t13+A).*exp(t13-A)+2-(1-(A-t13)+pit13-piA).*exp(A-t13-(pit13-piA))-(1-(pit13-piA)+A-t13).*exp(pit13-piA-(A-t13));
  2564. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min13 =min(min(d13));
  2565. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d14 = 2 - (1-A+t14).*exp(A-t14)-(1-t14+A).*exp(t14-A)+2-(1-(A-t14)+pit14-piA).*exp(A-t14-(pit14-piA))-(1-(pit14-piA)+A-t14).*exp(pit14-piA-(A-t14));
  2566. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min14 =min(min(d14));
  2567. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d15 = 2 - (1-A+t15).*exp(A-t15)-(1-t15+A).*exp(t15-A)+2-(1-(A-t15)+pit15-piA).*exp(A-t15-(pit15-piA))-(1-(pit15-piA)+A-t15).*exp(pit15-piA-(A-t15));
  2568. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min15 =min(min(d15));
  2569. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %d16 is the matix of 3x3 = divergence matix with orinigal matrix and
  2570. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %fuzzy tempelts 16.
  2571. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d16 = 2 - (1-A+t16).*exp(A-t16)-(1-t16+A).*exp(t16-A)+2-(1-(A-t16)+pit16-piA).*exp(A-t16-(pit16-piA))-(1-(pit16-piA)+A-t16).*exp(pit16-piA-(A-t16));
  2572. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min16 =min(min(d16));
  2573. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Selecting the minimun divergence among the 16 divergence values
  2574. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %and is positioned at the center of the templets position for the
  2575. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %edge iamge i.e in edgeim.
  2576. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dd = [min1 min2 min3 min4 min5 min6 min7 min8 min9 min10 min11 min12 min13 min14 min15 min16];
  2577. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fedgeim(i-1,j-1) = max(dd);
  2578. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end
  2579. &lt;br /&gt;end
  2580. &lt;br /&gt;%We wil get the edge image in the fuzzy doamin as edgeim matrix So we have
  2581. &lt;br /&gt;%to tranforming back in the image pixel domain i.e in the intercal [1
  2582. &lt;br /&gt;% 255] domain&amp;nbsp;
  2583. &lt;br /&gt;fedgeimmax = max(max(fedgeim));
  2584. &lt;br /&gt;edgeim = double((1/fedgeimmax)*(fedgeim));
  2585. &lt;br /&gt;% edgeimage = uint8(edgeim); %this is the matrix of edge in the 1-255
  2586. &lt;br /&gt;% figure, imshow(edgeimage);
  2587. &lt;br /&gt;% figure, imshow(uint8(I));
  2588. &lt;br /&gt;&amp;nbsp;
  2589. &lt;br /&gt;%% Out put
  2590. &lt;br /&gt;tt = 255*edgeim;
  2591. &lt;br /&gt;ttt = uint8(tt);
  2592. &lt;br /&gt;subplot(2,2,1),imshow(uint8(I))
  2593. &lt;br /&gt;title('original image');
  2594. &lt;br /&gt;%figure, imshow(ttt);
  2595. &lt;br /&gt;subplot(2,2,2),imshow(ttt)
  2596. &lt;br /&gt;title('Edge without threshold');
  2597. &lt;br /&gt;%Set a threshold&amp;nbsp;
  2598. &lt;br /&gt;for i = 1:r
  2599. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for j = 1:k
  2600. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ttt(i,j)&amp;gt;45&amp;nbsp;
  2601. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ed(i,j) = 255;
  2602. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else
  2603. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ed(i,j) = 0;
  2604. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end
  2605. &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end
  2606. &lt;br /&gt;end
  2607. &lt;br /&gt;subplot(2,2,3),imshow(ed);
  2608. &lt;br /&gt;title('After applying threshold 45');
  2609. &lt;br /&gt;%applying the morphological oprators of matlab i.e bwmorph
  2610. &lt;br /&gt;med = bwmorph(ed,'thin');
  2611. &lt;br /&gt;subplot(2,2,4), imshow(med);
  2612. &lt;br /&gt;title('after applying morphological thin fun');&lt;/span&gt;&lt;/div&gt;
  2613. &lt;div style="text-align: justify;"&gt;
  2614. &lt;span style="font-size: large;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  2615. &lt;div style="text-align: justify;"&gt;
  2616. &lt;span style="font-size: large;"&gt;************************************************************* &lt;/span&gt;&lt;/div&gt;
  2617. &lt;/div&gt;
  2618. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://3.bp.blogspot.com/-TaUqQgY-LHU/U6B977_nNcI/AAAAAAAAIBo/WuGWCB7ZLgA/s72-c/canny.tif" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Turn your Social media in to Paychecks with right Social Media Optimization Strategy</title><link>http://servforu.blogspot.com/2014/05/socialmediaoptimizationstrategyplanning.html</link><category>ad server</category><category>advantages</category><category>advertise</category><category>block</category><category>Facebook</category><category>google</category><category>keyword</category><category>marketing</category><category>marketing strategy</category><category>media</category><category>optimization</category><category>research</category><category>search</category><category>SEO</category><category>SMO</category><category>Social engineering</category><category>Soical Media Optimization</category><category>strategy</category><category>Twitter</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 27 May 2014 23:19:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-337588617708272644</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2619. &lt;div style="margin-bottom: 0cm;"&gt;
  2620. &lt;span style="font-size: x-large;"&gt;&lt;span style="color: blue;"&gt;Social media
  2621. optimization&lt;/span&gt; &lt;/span&gt;&lt;span style="font-size: large;"&gt;is the process of increasing the awareness of product or
  2622. service or brand or  event by using social media .&lt;/span&gt;&lt;/div&gt;
  2623. &lt;div style="font-weight: normal; margin-bottom: 0cm;"&gt;
  2624. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2625. &lt;div style="margin-bottom: 0cm;"&gt;
  2626. &lt;span style="font-size: large; font-weight: normal;"&gt;Social
  2627. media includes all the common&lt;a href="http://www.twitter.com/" target="_blank"&gt;&amp;nbsp;Twitter&lt;/a&gt;, &amp;nbsp;Facebook , Linkedin , Pinterest
  2628. , Blogger etc which have large content contributions . To generate
  2629. the viral publicity we need a unique user generated content base&lt;/span&gt;&lt;/div&gt;
  2630. &lt;div style="margin-bottom: 0cm;"&gt;
  2631. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2632. &lt;div style="margin-bottom: 0cm;"&gt;
  2633. &lt;span style="font-size: large; font-weight: normal;"&gt;mostly
  2634. all business focused on listed in Google's first page results using
  2635. &lt;/span&gt;&lt;span style="color: orange; font-size: large; font-weight: normal;"&gt;SEO&lt;/span&gt;&lt;span style="font-size: large; font-weight: normal;"&gt; and keyword researchs  to drive traffic in to their web portals.
  2636. Social media have a faster impact over people than Google . Last
  2637. month traffic to &lt;/span&gt;&lt;span style="color: #cc0000;"&gt;&lt;span style="font-size: large; font-weight: normal;"&gt;Blogger  was more than &lt;/span&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;220&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: large; font-weight: normal;"&gt; million&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: large; font-weight: normal;"&gt; . So its by
  2638. attracting so of that traffic surely business can achieve more &lt;/span&gt;
  2639. &lt;/div&gt;
  2640. &lt;div style="margin-bottom: 0cm;"&gt;
  2641. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2642. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2643. &lt;a href="http://3.bp.blogspot.com/-ymuLP3CY5z0/U4V1nSgY_rI/AAAAAAAAIBA/3NbfmNnnzfg/s1600/social_media_optimisation_smo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: large;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-ymuLP3CY5z0/U4V1nSgY_rI/AAAAAAAAIBA/3NbfmNnnzfg/s1600/social_media_optimisation_smo.jpg" height="587" width="640" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
  2644. &lt;div style="margin-bottom: 0cm;"&gt;
  2645. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2646. &lt;div style="margin-bottom: 0cm;"&gt;
  2647. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2648. &lt;div style="margin-bottom: 0cm;"&gt;
  2649. &lt;span style="font-size: large;"&gt;&lt;span style="font-weight: normal;"&gt;When
  2650. even before starting a business people and marketers do create  a Facebook Fanpage , twitter handle and Youtube channel , not all
  2651. business need all these .you ca&lt;/span&gt;&lt;span style="font-weight: normal;"&gt;n
  2652. d&lt;/span&gt;&lt;span style="font-weight: normal;"&gt;o better making &lt;/span&gt;&lt;span style="font-weight: normal;"&gt;your
  2653. own online presence which is social media friendly  to linking with
  2654. your products and services &lt;/span&gt;
  2655. &lt;/span&gt;&lt;/div&gt;
  2656. &lt;div style="margin-bottom: 0cm;"&gt;
  2657. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2658. &lt;div style="margin-bottom: 0cm;"&gt;
  2659. &lt;span style="font-size: large;"&gt;&lt;span style="font-weight: normal;"&gt;Social Meida is the online version of &lt;span style="color: #274e13;"&gt;word of mouth advertising&lt;/span&gt;&amp;nbsp;&lt;/span&gt;, so by
  2660. engaging with your social media  can make a positive change in the
  2661. customer base&lt;/span&gt;&lt;/div&gt;
  2662. &lt;div style="margin-bottom: 0cm;"&gt;
  2663. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2664. &lt;div style="margin-bottom: 0cm;"&gt;
  2665. &lt;span style="font-size: large; font-weight: normal;"&gt;&lt;span style="color: blue;"&gt;B&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-size: large;"&gt;eing&lt;/span&gt;&lt;span style="font-size: x-large;"&gt;
  2666. simple&lt;/span&gt; &lt;/span&gt;&lt;span style="font-size: large;"&gt;the users can communicate with you ,&lt;/span&gt;&lt;span style="color: red; font-size: large;"&gt; &lt;/span&gt;&lt;span style="font-size: x-large;"&gt;&lt;span style="color: red;"&gt;being open and honest&lt;/span&gt;
  2667. &lt;/span&gt;&lt;span style="font-size: large;"&gt;make you as&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: large;"&gt;favourite to  your &amp;nbsp;customers  . Merge the current
  2668. marketing with social media . May be some them are familiar with your
  2669. existing marketing campaigns link it with social media ,&lt;/span&gt;&lt;/div&gt;
  2670. &lt;div style="margin-bottom: 0cm;"&gt;
  2671. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2672. &lt;div style="margin-bottom: 0cm;"&gt;
  2673. &lt;span style="font-size: large;"&gt;&amp;nbsp;Mostly all
  2674. business have an SEO  strategy to make&lt;span style="color: #f1c232;"&gt; Google's Search Engine ranking&lt;/span&gt;
  2675. priority list . Blogging is
  2676. the perfect way to optimize the content to Google . Concentrate on
  2677. making contents for your blog and don't stop there . Cut short the
  2678. contents or make the headlines for Facebook and twitter  updates .use
  2679. the same for print and email marketing&lt;/span&gt;&lt;/div&gt;
  2680. &lt;div style="margin-bottom: 0cm;"&gt;
  2681. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2682. &lt;div style="margin-bottom: 0cm;"&gt;
  2683. &lt;span style="font-size: large;"&gt;You
  2684. can make&amp;nbsp;announcements&amp;nbsp;&amp;nbsp;via your social media , and other great way of
  2685. using social media is by offers .. give&amp;nbsp;massive offer announcements
  2686. which will surely increase number of the customers
  2687. &lt;/span&gt;&lt;/div&gt;
  2688. &lt;div style="margin-bottom: 0cm;"&gt;
  2689. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2690. &lt;div style="margin-bottom: 0cm;"&gt;
  2691. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2692. &lt;div style="margin-bottom: 0cm;"&gt;
  2693. &lt;span style="font-size: large;"&gt;If need a perfect SMO strategy contact &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  2694. &lt;div style="margin-bottom: 0cm;"&gt;
  2695. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2696. &lt;div style="margin-bottom: 0cm;"&gt;
  2697. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2698. &lt;div style="margin-bottom: 0cm;"&gt;
  2699. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2700. &lt;div style="margin-bottom: 0cm;"&gt;
  2701. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2702. &lt;div style="margin-bottom: 0cm;"&gt;
  2703. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2704. &lt;div style="margin-bottom: 0cm;"&gt;
  2705. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2706. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;
  2707. &lt;div style="margin-bottom: 0cm;"&gt;
  2708. &lt;br /&gt;&lt;/div&gt;
  2709. &lt;/div&gt;
  2710. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://3.bp.blogspot.com/-ymuLP3CY5z0/U4V1nSgY_rI/AAAAAAAAIBA/3NbfmNnnzfg/s72-c/social_media_optimisation_smo.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Edge Detection in Image Processing - MATLAB program</title><link>http://servforu.blogspot.com/2014/05/edge-detection-in-image-processing.html</link><category>Burst Media</category><category>digital</category><category>edge detection</category><category>git</category><category>image</category><category>image processing</category><category>MATLAB</category><category>Program</category><category>programming</category><category>Project</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 5 May 2014 11:47:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-6853242379725797035</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2711. &lt;h2 class="emphasize_color" style="background-color: white; border: 0px; color: #d55000; font-family: Arial, Helvetica, sans-serif; font-size: 1.2em; line-height: 20.15999984741211px; margin: 0px 0px 8px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  2712. Edge detection methods for finding object boundaries in images&lt;/h2&gt;
  2713. &lt;div style="background-color: white; border: 0px; color: #3c3c3c; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 19.200000762939453px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  2714. Edge detection&amp;nbsp;is an image processing technique for finding the boundaries of objects within images. It works by detecting discontinuities in brightness. Edge detection is used for&amp;nbsp;&lt;a href="http://www.mathworks.in/discovery/image-segmentation.html" style="background-color: transparent; border: 0px; color: #004aa0; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;image segmentation&lt;/a&gt;&amp;nbsp;and data extraction in areas such as image processing, computer vision, and machine vision.&lt;/div&gt;
  2715. &lt;div style="background-color: white; border: 0px; color: #3c3c3c; font-family: Arial, Helvetica, sans-serif; line-height: 19.200000762939453px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  2716. &lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2717. &lt;div style="background-color: white; border: 0px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  2718. &lt;span style="color: #3c3c3c; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;span style="line-height: 19.200000762939453px;"&gt;Prewitt Edge Detection&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2719. &lt;div style="background-color: white; border: 0px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  2720. &lt;span style="color: #3c3c3c; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;span style="line-height: 19.200000762939453px;"&gt;sobel Edge Detection&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2721. &lt;div style="background-color: white; border: 0px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  2722. &lt;span style="color: #3c3c3c; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;span style="line-height: 19.200000762939453px;"&gt;canny Edge Detection&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2723. &lt;div style="background-color: white; border: 0px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  2724. &lt;span style="color: #3c3c3c; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;span style="line-height: 19.200000762939453px;"&gt;log Edge Detection&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2725. &lt;div style="background-color: white; border: 0px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  2726. &lt;span style="color: #3c3c3c; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;span style="line-height: 19.200000762939453px;"&gt;robert Edge Detection&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2727. &lt;div style="background-color: white; border: 0px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  2728. &lt;span style="color: #3c3c3c; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;span style="line-height: 19.200000762939453px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2729. &lt;div style="background-color: white; border: 0px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  2730. &lt;span style="color: #3c3c3c; font-family: Arial, Helvetica, sans-serif; font-size: large;"&gt;&lt;span style="line-height: 19.200000762939453px;"&gt;here is the program for the above edge detections&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2731. &lt;div style="background-color: white; border: 0px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
  2732. &lt;a href="https://github.com/ebine/edgedetection/"&gt;&lt;span style="font-size: large;"&gt;https://github.com/ebine/edgedetection/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
  2733. &lt;/div&gt;
  2734. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Digital Steganography: Hiding Data within Data  -  MATLAB Program</title><link>http://servforu.blogspot.com/2014/05/digital-steganography-hiding-data.html</link><category>decode</category><category>digital</category><category>encode</category><category>git</category><category>Hacking</category><category>image processing</category><category>MATLAB</category><category>Program</category><category>programming</category><category>steganography</category><category>Tricks</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 5 May 2014 11:32:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-6640464459597852708</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2735. &lt;b&gt;Uses of Steganography&lt;/b&gt;&lt;br /&gt;
  2736. &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
  2737. &lt;div style="text-align: justify;"&gt;
  2738. Steganography is a means of storing information in a way that hides that information’s existence. Paired with existing communication methods, steganography can be used to carry out hidden exchanges. Governments are interested in two types of hidden communications: those that support national security and those that do not. Digital steganography provides vast potential for both types. Businesses may have similar concerns regarding trade secrets or new product information. Avoiding communication in well-known forms greatly reduces the risk of information being leaked in transit.&lt;/div&gt;
  2739. &lt;div style="text-align: justify;"&gt;
  2740. &lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
  2741. &lt;div style="text-align: justify;"&gt;
  2742. &lt;b&gt;Images as Carriers&lt;/b&gt;&lt;/div&gt;
  2743. &lt;div style="text-align: justify;"&gt;
  2744. Images are a good medium for hiding data (for details, see Pan, Chen, and Tseng 3 ). The more detailed an image, the fewer constraints there are on how much data it can hide before it becomes suspect. The JPHide/JPSeek package (http://linux01.gwdg.de/~alatham/stego.html) uses the coefficients in a JPEG to hide information. A newer method (http://www.know.comp.kyutech.ac.jp/BPCSe/BPCSe-principle.html) embeds data in visually insignificant parts of an image. Both of these methods alter the image; however, you can explore image degradation using different images and messages of varying length. An alternative, specific to GIF images, is to manipulate an image’s palette in order to hide data. Gifshuffle (http://www.darkside.com.au/gifshuffle/) does not alter the image itself in any visible way; rather, it permutes a GIF image’s color map, leaving the original image completely intact&lt;/div&gt;
  2745. &lt;div style="text-align: justify;"&gt;
  2746. &lt;br /&gt;&lt;/div&gt;
  2747. &lt;div style="text-align: justify;"&gt;
  2748. &lt;br /&gt;&lt;/div&gt;
  2749. &lt;div style="text-align: justify;"&gt;
  2750. Here is the matlab code for stegnography . both encode and decode&amp;nbsp;&lt;/div&gt;
  2751. &lt;div style="text-align: justify;"&gt;
  2752. &lt;br /&gt;&lt;/div&gt;
  2753. &lt;div style="text-align: justify;"&gt;
  2754. download it from github&amp;nbsp;&lt;b&gt;&lt;a href="https://github.com/ebine/stegnography/"&gt;https://github.com/ebine/stegnography/&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
  2755. &lt;div style="text-align: justify;"&gt;
  2756. &lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
  2757. &lt;div style="text-align: justify;"&gt;
  2758. &lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
  2759. &lt;/div&gt;
  2760. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Efficient Dilation, Erosion, Opening, and Closing Algorithms in MATLAB</title><link>http://servforu.blogspot.com/2014/05/efficient-dilation-erosion-opening-and.html</link><category>algorithm</category><category>Code</category><category>dilation</category><category>efficient</category><category>erosion</category><category>final year</category><category>image</category><category>image processing</category><category>implimentation</category><category>MATLAB</category><category>morphological</category><category>Program</category><category>Project</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 5 May 2014 10:24:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-1018212187028010952</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2761. &lt;div style="text-align: justify;"&gt;
  2762. &lt;b&gt;Abstract&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
  2763. &lt;div style="text-align: justify;"&gt;
  2764. We propose an efficient and deterministic algorithm for computing the one-dimensional dilation and erosion (max and min) sliding window filters. For a p-element sliding window, our algorithm computes the 1D filter using 1:5 þ oð1Þ comparisons per sample point. Our algorithm constitutes a deterministic improvement over the best previously known such algorithm, independently developed by van Herk [25] and by Gil and Werman [12] (the HGW algorithm). Also, the results presented in this paper constitute an improvement over the Gevorkian et al. [9] (GAA) variant of the HGW algorithm. The improvement over the GAA variant is also in the computation model. The GAA algorithm makes the assumption that the input is independently and identically distributed (the i.i.d. assumption), whereas our main result is deterministic. We also deal with the problem of computing the dilation and erosion filters simultaneously, as required, e.g., for computing the unbiased morphological edge. In the case of i.i.d. inputs, we show that this simultaneous computation can be done more efficiently then separately computing each. We then turn to the opening filter, defined as the application of the min filter to the max filter and give an efficient algorithm for its computation. Specifically, this algorithm is only slightly slower than the computation of just the max filter. The improved algorithms are readily generalized to two dimensions (for a rectangular window), as well as to any higher finite dimension (for a hyperbox window), with the number of comparisons per window remaining constant. For the sake of concreteness, we also make a few comments on implementation considerations in a contemporary programming language.&lt;/div&gt;
  2765. &lt;div style="text-align: justify;"&gt;
  2766. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2767. &lt;a href="http://3.bp.blogspot.com/-Qmg9It4LD3s/U2fLqEMUB9I/AAAAAAAAIAg/DGlQAnfGRAU/s1600/out.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="efficient Dilation, Erosion, Opening, and Closing Algorithms" border="0" src="http://3.bp.blogspot.com/-Qmg9It4LD3s/U2fLqEMUB9I/AAAAAAAAIAg/DGlQAnfGRAU/s1600/out.jpg" height="384" title="efficient Dilation, Erosion, Opening, and Closing Algorithms" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
  2768. Figure : The effect of the opening (top) and closing (bottom) filters. (Original image is shown on left frame, followed by the filtered image using rectangular windows sized 2x2, 4x4, 8x8, and 16x16.)&lt;br /&gt;
  2769. &lt;br /&gt;
  2770. &lt;br /&gt;&lt;/div&gt;
  2771. &lt;div style="text-align: justify;"&gt;
  2772. Paper link in IEEE&lt;br /&gt;
  2773. &lt;br /&gt;&lt;/div&gt;
  2774. &lt;div style="text-align: justify;"&gt;
  2775. &lt;a href="http://ieeexplore.ieee.org/xpl/login.jsp?tp=&amp;amp;arnumber=1114852&amp;amp;url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D1114852"&gt;&lt;span id="goog_884224303"&gt;&lt;/span&gt;&lt;span id="goog_884224304"&gt;&lt;/span&gt;http://ieeexplore.ieee.org/xpl/login.jsp?tp=&amp;amp;arnumber=1114852&amp;amp;url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D1114852&lt;/a&gt;&lt;br /&gt;
  2776. &lt;br /&gt;&lt;/div&gt;
  2777. &lt;div style="text-align: justify;"&gt;
  2778. &lt;a href="http://ieeexplore.ieee.org/xpl/login.jsp?tp=&amp;amp;arnumber=1114852&amp;amp;url=http%3A%2F%2Fieeexplore.ieee.org%2Fiel5%2F34%2F24589%2F01114852.pdf%3Farnumber%3D1114852"&gt;http://ieeexplore.ieee.org/xpl/login.jsp?tp=&amp;amp;arnumber=1114852&amp;amp;url=http%3A%2F%2Fieeexplore.ieee.org%2Fiel5%2F34%2F24589%2F01114852.pdf%3Farnumber%3D1114852&lt;/a&gt;&lt;br /&gt;
  2779. &lt;br /&gt;&lt;/div&gt;
  2780. &lt;div style="text-align: justify;"&gt;
  2781. &lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
  2782. &lt;div style="text-align: justify;"&gt;
  2783. &lt;b&gt;IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE,&lt;/b&gt;&lt;/div&gt;
  2784. &lt;div style="text-align: justify;"&gt;
  2785. &lt;b&gt;VOL. 24, NO. 12, DECEMBER 2002&lt;/b&gt;&lt;br /&gt;
  2786. &lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
  2787. &lt;div style="text-align: justify;"&gt;
  2788. &lt;b&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  2789. &lt;div style="text-align: justify;"&gt;
  2790. &lt;div style="text-align: left;"&gt;
  2791. &lt;b&gt;&lt;span style="font-size: large;"&gt;Here is the MATLAB code for the same paper is availabe on git hub&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  2792. &lt;div style="text-align: left;"&gt;
  2793. &lt;b&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  2794. &lt;div style="text-align: left;"&gt;
  2795. &lt;b&gt;&lt;span style="font-size: large;"&gt;download &amp;nbsp; at &amp;nbsp;&lt;a href="https://github.com/ebine/morphological" rel="nofollow" target="_blank"&gt;https://github.com/ebine/morphological&lt;/a&gt;l&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  2796. &lt;/div&gt;
  2797. &lt;/div&gt;
  2798. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://3.bp.blogspot.com/-Qmg9It4LD3s/U2fLqEMUB9I/AAAAAAAAIAg/DGlQAnfGRAU/s72-c/out.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Hard Resets and Soft resets for your NOKIA X, Nokia Xl , Nokia X+ ANDROID Phones</title><link>http://servforu.blogspot.com/2014/04/hard-resets-and-soft-resets-for-your.html</link><category>ANDROID</category><category>contact</category><category>export</category><category>gapps</category><category>gmail</category><category>google</category><category>hard</category><category>NOKIA</category><category>nokia x</category><category>nokia x+</category><category>nokia xl</category><category>reset</category><category>Smartphones</category><category>soft reset</category><category>sync</category><category>tips</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Thu, 3 Apr 2014 23:38:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-5348066302466145755</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2799. Nokia adds three models in android versions Nokia X,Nokia XL,Nokia X+&lt;br /&gt;
  2800. &lt;b&gt;&lt;span style="font-size: x-large;"&gt;&lt;span style="color: royalblue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
  2801. &lt;b&gt;&lt;span style="font-size: x-large;"&gt;&lt;span style="color: royalblue;"&gt;1. power off your nokia x&lt;br /&gt;2.now wait for 15-20 seconds&lt;br /&gt;3.now press the power button you will see nokia written on screen&lt;br /&gt;4.now just press the volume up button for 5-6 seconds and poof&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: red;"&gt;you are in nokia android recovery&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
  2802. &lt;b&gt;&lt;span style="font-size: x-large;"&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
  2803. &lt;span style="color: red; font-size: x-large;"&gt;&lt;b&gt;wipe data ,cache and all from your Nokia ANDROID smartphone&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
  2804. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to Import Google/Gmail Contacts to Nokia X,X+ and XL Nokia Android Phones Working Trick</title><link>http://servforu.blogspot.com/2014/04/how-to-import-googlegmail-contacts-to.html</link><category>ANDROID</category><category>contact</category><category>export</category><category>gmail</category><category>google</category><category>NOKIA</category><category>nokia x</category><category>nokia x+</category><category>nokia xl</category><category>Smartphones</category><category>sync</category><category>tips</category><category>vcard</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Thu, 3 Apr 2014 23:29:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-6259717210930087500</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2805. &lt;br /&gt;
  2806. &lt;div style="text-align: justify;"&gt;
  2807. 1. First of all login to Gmail and click on Contacts at the top left side of the page.&lt;/div&gt;
  2808. &lt;div style="text-align: justify;"&gt;
  2809. &lt;a href="http://www.putques.com/wp-content/uploads/2014/04/contacts.jpg"&gt;&lt;img alt="gmail contacts" class="size-full wp-image-648 aligncenter" src="http://www.putques.com/wp-content/uploads/2014/04/contacts.jpg" height="243" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;
  2810. &lt;div style="text-align: justify;"&gt;
  2811. 2. &amp;nbsp;Now on the menu an option is labeled as More, just click on Export.&lt;/div&gt;
  2812. &lt;div style="text-align: justify;"&gt;
  2813. &lt;a href="http://www.putques.com/wp-content/uploads/2014/04/export.png"&gt;&lt;img alt="contact export" class="size-full wp-image-649 aligncenter" src="http://www.putques.com/wp-content/uploads/2014/04/export.png" height="271" width="500" /&gt;&lt;/a&gt;&lt;/div&gt;
  2814. &lt;div style="text-align: justify;"&gt;
  2815. &lt;/div&gt;
  2816. &lt;div style="text-align: justify;"&gt;
  2817. 3. You will get a pop, here just choose your contacts, and export all your contacts in vCard&amp;nbsp;format.&lt;/div&gt;
  2818. &lt;div style="text-align: justify;"&gt;
  2819. &lt;img alt="vCard Format Gmail" class="size-full wp-image-650 aligncenter" src="http://www.putques.com/wp-content/uploads/2014/04/vcard.png" height="310" width="517" /&gt;&lt;/div&gt;
  2820. &lt;div style="text-align: justify;"&gt;
  2821. 4. &amp;nbsp;Now copy &lt;span class="GINGER_SOFTWARE_mark" id="0c01a634-5a41-43a7-be78-a857f78b1ac7"&gt;vCard&lt;/span&gt;&amp;nbsp;file to your Nokia X SD card by connecting the phone to your PC.&lt;/div&gt;
  2822. &lt;div style="text-align: justify;"&gt;
  2823. 5. Use ASTRO File manager (&lt;span class="GINGER_SOFTWARE_mark" id="a8a0b51b-2f89-4370-9249-1702142f6d60"&gt;preinstalled&lt;/span&gt;) to locate the &lt;span class="GINGER_SOFTWARE_mark" id="17114244-b7e9-4571-814f-d6f92e0130c8"&gt;vCard&lt;/span&gt;&amp;nbsp;file and tap to open.&lt;/div&gt;
  2824. &lt;div style="text-align: justify;"&gt;
  2825. 6. Once you have done this, your device will start importing your Gmail contacts to your Nokia X.&lt;/div&gt;
  2826. &lt;/div&gt;
  2827. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Unroot Your Nokia X, Nokia XL , Nokia X+</title><link>http://servforu.blogspot.com/2014/04/unroot-your-nokia-x-nokia-xl-nokia-x.html</link><category>ANDROID</category><category>android app</category><category>android backup</category><category>android market</category><category>download</category><category>framaroot.apk</category><category>NOKIA</category><category>nokia x</category><category>nokia x+</category><category>nokia xl</category><category>root</category><category>samsung</category><category>tips</category><category>unroot</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 2 Apr 2014 00:53:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-7452812662285603961</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2828. &lt;div style="text-align: justify;"&gt;
  2829. &lt;span style="font-size: large;"&gt;&lt;span style="background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; line-height: 17px;"&gt;First of all&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; line-height: 17px;"&gt;what you need to do for unrooting Nokia X , Nokia XL and Nokia X+ is&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2830. &lt;div style="text-align: justify;"&gt;
  2831. &lt;span style="font-size: large;"&gt;&lt;span style="background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2832. &lt;div style="text-align: justify;"&gt;
  2833. &lt;span style="font-size: large;"&gt;&lt;span style="background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2834. &lt;div style="text-align: justify;"&gt;
  2835. &lt;span style="font-size: large;"&gt;&lt;span style="background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2836. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2837. &lt;a href="http://4.bp.blogspot.com/-eZ6SU-KXIUk/UzvB2KppZfI/AAAAAAAAH9w/O6le3iQh9no/s1600/nokia_x.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-eZ6SU-KXIUk/UzvB2KppZfI/AAAAAAAAH9w/O6le3iQh9no/s1600/nokia_x.jpg" height="260" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
  2838. &lt;div style="text-align: justify;"&gt;
  2839. &lt;span style="font-size: large;"&gt;&lt;span style="background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2840. &lt;div style="text-align: justify;"&gt;
  2841. &lt;span style="background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; line-height: 17px;"&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2842. &lt;br /&gt;
  2843. &lt;div style="text-align: justify;"&gt;
  2844. &lt;span style="background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; font-size: large; line-height: 17px;"&gt;1. !oot your phone again with&lt;/span&gt;&lt;a href="http://forum.xda-developers.com/attachment.php?attachmentid=2566341&amp;amp;d=1391850491" style="font-family: Arial, Helvetica, sans-serif; font-size: x-large; line-height: 17px;" target="_blank"&gt; framaroot&lt;/a&gt;&lt;/div&gt;
  2845. &lt;span style="font-size: large;"&gt;&lt;div style="text-align: justify;"&gt;
  2846. &lt;span style="background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; line-height: 17px;"&gt;2.if you get two supersu then remove that pre installed one with root permission.&lt;/span&gt;&lt;/div&gt;
  2847. &lt;span style="background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; line-height: 17px;"&gt;&lt;div style="text-align: justify;"&gt;
  2848. 3.if there is only one then no problem out there just unroot your phone again with framaroot.&lt;/div&gt;
  2849. &lt;/span&gt;&lt;span style="background-color: white; color: #222225; font-family: Arial, Helvetica, sans-serif; line-height: 17px;"&gt;&lt;div style="text-align: justify;"&gt;
  2850. 4.BOOM now supersu will get vanished&lt;/div&gt;
  2851. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2852. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://4.bp.blogspot.com/-eZ6SU-KXIUk/UzvB2KppZfI/AAAAAAAAH9w/O6le3iQh9no/s72-c/nokia_x.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><enclosure length="1082486" type="application/octet-stream" url="http://forum.xda-developers.com/attachment.php?attachmentid=2566341&amp;amp;d=1391850491"/><itunes:explicit/><itunes:subtitle>First of all&amp;nbsp;what you need to do for unrooting Nokia X , Nokia XL and Nokia X+ is&amp;nbsp; 1. !oot your phone again with framaroot 2.if you get two supersu then remove that pre installed one with root permission. 3.if there is only one then no problem out there just unroot your phone again with framaroot. 4.BOOM now supersu will get vanished</itunes:subtitle><itunes:author>noreply@blogger.com (Anonymous)</itunes:author><itunes:summary>First of all&amp;nbsp;what you need to do for unrooting Nokia X , Nokia XL and Nokia X+ is&amp;nbsp; 1. !oot your phone again with framaroot 2.if you get two supersu then remove that pre installed one with root permission. 3.if there is only one then no problem out there just unroot your phone again with framaroot. 4.BOOM now supersu will get vanished</itunes:summary><itunes:keywords>ANDROID, android app, android backup, android market, download, framaroot.apk, NOKIA, nokia x, nokia x+, nokia xl, root, samsung, tips, unroot</itunes:keywords></item><item><title>Root your nokia X+,XL,X </title><link>http://servforu.blogspot.com/2014/04/root-your-nokia-xxlx.html</link><category>ANDROID</category><category>download</category><category>framaroot.apk</category><category>NOKIA</category><category>nokia x</category><category>nokia x+</category><category>nokia xl</category><category>root</category><category>tips</category><category>unroot</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 2 Apr 2014 00:49:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-696398869754549575</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2853. &lt;br /&gt;
  2854. &lt;div style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; padding: 0px;"&gt;
  2855. To Root&amp;nbsp;&lt;/div&gt;
  2856. &lt;div style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; padding: 0px;"&gt;
  2857. &lt;br /&gt;&lt;/div&gt;
  2858. &lt;div style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; padding: 0px;"&gt;
  2859. &lt;br /&gt;&lt;/div&gt;
  2860. &lt;div style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; padding: 0px;"&gt;
  2861. &lt;br /&gt;&lt;/div&gt;
  2862. &lt;div style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; padding: 0px;"&gt;
  2863. 1.&amp;nbsp;&lt;a href="http://forum.xda-developers.com/attachment.php?attachmentid=2566341&amp;amp;d=1391850491" style="color: #1d7fb4; margin: 0px; padding: 0px; text-decoration: none;" target="_blank"&gt;Download the Framaroot.apk&lt;/a&gt;&amp;nbsp;on your Nokia X, Nokia X+, or Nokia XL;&lt;/div&gt;
  2864. &lt;div style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; padding: 0px;"&gt;
  2865. &lt;br /&gt;&lt;/div&gt;
  2866. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2867. &lt;a href="http://4.bp.blogspot.com/-KAetjzHNsKA/UzvA16yyncI/AAAAAAAAH9o/Xpnazq6HMQo/s1600/Nokia-X-header.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-KAetjzHNsKA/UzvA16yyncI/AAAAAAAAH9o/Xpnazq6HMQo/s1600/Nokia-X-header.png" height="200" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
  2868. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2869. &lt;/div&gt;
  2870. &lt;div style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; padding: 0px;"&gt;
  2871. &lt;br /&gt;&lt;/div&gt;
  2872. &lt;div style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; padding: 0px;"&gt;
  2873. 2. Use the built-in Astro file manager, and browse to the folder where you downloaded Framaroot.apk, then tap on its icon to install;&lt;br style="margin: 0px; padding: 0px;" /&gt;3. Upon installation, start Framaroot. There are two root exploits to choose from - "Aragorn" and “Gandalf” - tap on "Gandalf";&lt;br style="margin: 0px; padding: 0px;" /&gt;4. Now reboot your Nokia X,&amp;nbsp;Nokia X+, or Nokia XL, and you should be rooted.&lt;/div&gt;
  2874. &lt;div&gt;
  2875. &lt;br /&gt;&lt;/div&gt;
  2876. &lt;/div&gt;
  2877. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://4.bp.blogspot.com/-KAetjzHNsKA/UzvA16yyncI/AAAAAAAAH9o/Xpnazq6HMQo/s72-c/Nokia-X-header.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><enclosure length="1082486" type="application/octet-stream" url="http://forum.xda-developers.com/attachment.php?attachmentid=2566341&amp;amp;d=1391850491"/><itunes:explicit/><itunes:subtitle>To Root&amp;nbsp; 1.&amp;nbsp;Download the Framaroot.apk&amp;nbsp;on your Nokia X, Nokia X+, or Nokia XL; 2. Use the built-in Astro file manager, and browse to the folder where you downloaded Framaroot.apk, then tap on its icon to install;3. Upon installation, start Framaroot. There are two root exploits to choose from - "Aragorn" and “Gandalf” - tap on "Gandalf";4. Now reboot your Nokia X,&amp;nbsp;Nokia X+, or Nokia XL, and you should be rooted.</itunes:subtitle><itunes:author>noreply@blogger.com (Anonymous)</itunes:author><itunes:summary>To Root&amp;nbsp; 1.&amp;nbsp;Download the Framaroot.apk&amp;nbsp;on your Nokia X, Nokia X+, or Nokia XL; 2. Use the built-in Astro file manager, and browse to the folder where you downloaded Framaroot.apk, then tap on its icon to install;3. Upon installation, start Framaroot. There are two root exploits to choose from - "Aragorn" and “Gandalf” - tap on "Gandalf";4. Now reboot your Nokia X,&amp;nbsp;Nokia X+, or Nokia XL, and you should be rooted.</itunes:summary><itunes:keywords>ANDROID, download, framaroot.apk, NOKIA, nokia x, nokia x+, nokia xl, root, tips, unroot</itunes:keywords></item><item><title>Fin Trends over the world , and New era of smart rings starts here </title><link>http://servforu.blogspot.com/2014/02/fin-trends-over-world-and-new-era-of.html</link><category>discovery</category><category>fin</category><category>mashable</category><category>mwc14</category><category>rhl vision technologies</category><category>rhlvision</category><category>rohil</category><category>rohildev</category><category>touchless</category><category>wearthefin</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 25 Feb 2014 05:42:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-3952653673620569676</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2878. &lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Its new era with smart rings , here the&amp;nbsp;&lt;span style="background-color: white; line-height: 32px;"&gt;&lt;a href="http://www.rhlvision.com/" target="_blank"&gt;RHLvision Technologies Pvt.Ltd&lt;/a&gt;&amp;nbsp; introduces new gadget called fin&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; line-height: 19px;"&gt;&amp;nbsp;that you can wear on your thumb as a ring and it will make your whole palm as a gesture interface,&lt;br /&gt;&lt;br /&gt;Its waterproof tiny flexible sized device that may be a jewellery for the next generation , and with high battery efficiency of 1 week week ,and have a micro-USB charging port .Its support cross platform over&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; line-height: 18.84375px;"&gt;&amp;nbsp;Windows, MAC, iOS, Android, Windows Phones.And it open developers platform to hack and make it use for as many possibilities , to make the hands free&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  2879. &lt;div&gt;
  2880. &lt;span style="background-color: white; color: #222222; line-height: 18.84375px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2881. &lt;div class="separator" style="clear: both; text-align: center;"&gt;
  2882. &lt;a href="https://images.indiegogo.com/file_attachments/301097/files/20140110101734-Fin-Indiegogo-spec.jpg?1389377854" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://images.indiegogo.com/file_attachments/301097/files/20140110101734-Fin-Indiegogo-spec.jpg?1389377854" style="font-size: 0.875em; height: 330px; line-height: 1.125em; max-width: 580px; text-align: justify; width: 573.6923076923077px;" /&gt;&lt;/a&gt;&lt;/div&gt;
  2883. &lt;div&gt;
  2884. &lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: white; line-height: 22px;"&gt;“People in today’s world are becoming more busy, but still they are wasting a lot of time interacting with their smart devices,”&amp;nbsp;Rohildev Nattukallingal, founder of RHL Vision Technologies, the startup behind Fin,&lt;/span&gt;&lt;a href="http://mashable.com/2014/02/02/palm-fin-touch-interface/" style="background-color: white; font-weight: bold; line-height: 22px; text-decoration: none;"&gt;told Mashable&lt;/a&gt;&lt;span style="background-color: white;"&gt;&lt;span style="line-height: 22px;"&gt;. “Fin removes this interaction gap by allowing users to quickly interact with those devices.”&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="line-height: 22px;"&gt;Its there i&lt;a href="http://techcrunch.com/2014/01/08/the-fin-is-a-bluetooth-ring-that-turns-your-hand-into-the-interface" target="_blank"&gt;n TechCrunch Hardware battle top 15&amp;nbsp;&lt;/a&gt;and featured and reviewed by most of the gadget doctors and said wowww to this awesome ring ,&lt;/span&gt;&lt;br /&gt;&lt;span style="line-height: 22px;"&gt;Fin can be get on the retail market from this year end&lt;/span&gt;&lt;a href="http://mobileworldcongress.com/conference-speaker-profiles/" style="line-height: 22px;" target="_blank"&gt; Rohil Dev&lt;/a&gt;&lt;span style="line-height: 22px;"&gt; ,the youngest speaker of #MWC14 told&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="line-height: 22px;"&gt;its now going to showcased over here in&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;strong style="background-color: white; box-sizing: border-box; line-height: 25px;"&gt;&lt;a href="http://mobileworldcongress.com/" style="box-sizing: border-box; line-height: inherit; text-decoration: none;" target="_blank"&gt;GSMA Mobile World Congress 2014&lt;/a&gt;&amp;nbsp; and &amp;nbsp; hope they will get awesome response with the live demo&amp;nbsp;&amp;nbsp;of fin , here they have their two prototypes now and testing is done at their R&amp;amp;D labs at Indian Telecom Innovation Hub at cochin &amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
  2885. &lt;div&gt;
  2886. &lt;span style="background-color: white; line-height: 18.84375px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2887. &lt;div&gt;
  2888. &lt;div&gt;
  2889. &lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
  2890. &lt;div&gt;
  2891. &lt;span style="line-height: 19px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2892. &lt;div&gt;
  2893. &lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;&lt;span style="background-color: white;"&gt;&lt;span style="line-height: 18.84375px;"&gt;Recently they achieved their goal in &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://igg.me/at/wearfin"&gt;&lt;span style="line-height: 19px;"&gt;http://i&lt;/span&gt;&lt;span style="line-height: 19px;"&gt;gg.me/at/wearfin&lt;/span&gt;&lt;/a&gt;&amp;nbsp;&lt;span style="background-color: white; line-height: 18px;"&gt;Raised of&amp;nbsp;&lt;/span&gt;&lt;span class="currency" style="background-color: white; line-height: 18px;"&gt;$100,000 and solding out ,place the order for yours&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
  2894. &lt;div&gt;
  2895. &lt;span style="background-color: white; color: #07a045; font-family: arial, sans-serif; font-size: 15px; font-style: italic; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2896. &lt;div&gt;
  2897. &lt;div&gt;
  2898. &lt;div&gt;
  2899. &lt;iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/iZ6PVBvQf-g" width="560"&gt;&lt;/iframe&gt;
  2900.  
  2901. &lt;br /&gt;
  2902. &lt;table border="0" class="headerTable" style="background-color: #17cc82; background-image: none; border: 1px none rgb(221, 221, 221); box-sizing: border-box; color: white; font-family: Dosis, sans-serif; font-size: 16px; line-height: 16px; margin-bottom: 1.25em; text-align: justify; width: 100%px;"&gt;&lt;tbody style="box-sizing: border-box;"&gt;
  2903. &lt;tr style="background-color: #f9f9f9; background-position: initial initial; background-repeat: initial initial; box-sizing: border-box;"&gt;&lt;td align="center" class="headerTable" height="775" style="background-color: #17cc82; background-image: none; border-style: none; box-sizing: border-box; color: #222222; direction: ltr; font-size: 0.875em; line-height: 1.125em; margin: 0px; padding: 0.5625em 0.625em;" width="100%"&gt;&lt;div style="box-sizing: border-box; direction: ltr; font-family: inherit; font-size: 30px; line-height: 1.3em; margin-bottom: 1.25em; padding: 0px; text-rendering: optimizelegibility;"&gt;
  2904. &lt;a href="http://igg.me/at/wearfin" style="box-sizing: border-box; color: #2795b6; cursor: pointer; line-height: inherit; text-decoration: none;" target="_blank"&gt;&lt;img src="http://www.wearfin.com/img/banner.png" height="252" style="border: none; box-sizing: border-box; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
  2905. &lt;div style="box-sizing: border-box; direction: ltr; font-family: inherit; font-size: 30px; line-height: 1.3em; margin-bottom: 1.25em; padding: 0px; text-rendering: optimizelegibility;"&gt;
  2906. &lt;/div&gt;
  2907. &lt;br /&gt;
  2908. &lt;div&gt;
  2909. &lt;img src="https://images.indiegogo.com/file_attachments/355056/files/20140207043618-Fin-Explanation.jpg?1391776578" style="max-width: 580px;" /&gt;&lt;/div&gt;
  2910. &lt;div&gt;
  2911. &lt;br /&gt;&lt;/div&gt;
  2912. &lt;/td&gt;&lt;/tr&gt;
  2913. &lt;/tbody&gt;&lt;/table&gt;
  2914. &lt;/div&gt;
  2915. &lt;/div&gt;
  2916. &lt;/div&gt;
  2917. &lt;/div&gt;
  2918. &lt;/div&gt;
  2919. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>VibeApp Hack your email contacts , Grab everything you need to know about your email contacts </title><link>http://servforu.blogspot.com/2014/02/vibeapp-hack-your-email-contacts-grab.html</link><category>applications</category><category>Chrome</category><category>Chromium</category><category>contact</category><category>email</category><category>email ads</category><category>Facebook</category><category>google</category><category>Hacking</category><category>mac</category><category>solving</category><category>Twitter</category><category>vibe</category><category>vibeapp</category><category>website</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 17 Feb 2014 18:46:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-5557246839808405968</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2920. &lt;a href="http://3.bp.blogspot.com/-vXIkPhdNdao/UwLIbvrcyNI/AAAAAAAAH7c/PeCoFlinYHw/s1600/vibe.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-vXIkPhdNdao/UwLIbvrcyNI/AAAAAAAAH7c/PeCoFlinYHw/s1600/vibe.png" height="320" width="255" /&gt;&lt;/a&gt;I was confused always when I get emails from unknowns , i stuck at finding the sender behind the craps , now I got a simple solution and that is &lt;a href="http://vibeapp.co/" target="_blank"&gt;vibeApp&lt;/a&gt;&lt;br /&gt;
  2921. &lt;br /&gt;
  2922. And just in a simple hover the cursor over the email adress all about the email id is listed , everything the &lt;a href="https://twitter.com/imgabbar" target="_blank"&gt;twitter&lt;/a&gt; handle , &lt;a href="https://www.facebook.com/ebinephrem" target="_blank"&gt;facebook&amp;nbsp;&lt;/a&gt;&amp;nbsp;, &lt;a href="http://linkedin.com/" target="_blank"&gt;linkedin&lt;/a&gt;&amp;nbsp;&amp;nbsp;Google+, and even a web page they are most likely to be associated with&lt;br /&gt;
  2923. &lt;br /&gt;
  2924. &lt;br /&gt;
  2925. Hello Vibe is an application that more accurate and simple to use &amp;nbsp;know about the information about the email contacts , now its available for &lt;a href="https://chrome.google.com/webstore/detail/vibe-for-google-chrome/dbnookjgoaaelhciadikaadnkgmiamei/related" target="_blank"&gt;chrome&lt;/a&gt;&amp;nbsp;and &lt;a href="http://vibeapp.co/static/mac/Vibe-for-Mac-0.9.zip" target="_blank"&gt;mac&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Download it and know the people behind you&lt;br /&gt;&lt;a href="http://vibeapp.co/#/home"&gt;http://vibeapp.co/#/home&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
  2926. </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://3.bp.blogspot.com/-vXIkPhdNdao/UwLIbvrcyNI/AAAAAAAAH7c/PeCoFlinYHw/s72-c/vibe.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>LINEAR BLOCKCODES</title><link>http://servforu.blogspot.com/2013/12/linear-blockcodes.html</link><category>BLOCK CODES</category><category>COMMUNICATION SYSTEMS</category><category>engineering</category><category>LAB EXPERIMENT</category><category>LINEAR</category><category>linear system</category><category>M.E</category><category>M.TECH</category><category>MATLAB</category><category>Program</category><category>programming</category><category>SIMULATION</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Fri, 27 Dec 2013 21:42:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-2727778486336973051</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  2927. &lt;div align="CENTER" style="margin-bottom: 0.35cm;"&gt;
  2928. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;LINEAR
  2929. BLOCKCODES&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2930. &lt;div style="margin-bottom: 0.35cm;"&gt;
  2931. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;AIM&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2932. &lt;div style="margin-bottom: 0.35cm; text-indent: 1.27cm;"&gt;
  2933. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;To
  2934. detect and correct the error accruing in the transmitted data with
  2935. the help &lt;/span&gt;&lt;/span&gt;
  2936. &lt;/div&gt;
  2937. &lt;div style="margin-bottom: 0.35cm;"&gt;
  2938. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;of
  2939. linear block codes.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2940. &lt;div style="margin-bottom: 0.35cm;"&gt;
  2941. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;THEORY&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2942. &lt;div style="margin-bottom: 0.35cm; text-indent: 1.27cm;"&gt;
  2943. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;A
  2944. code is said to be linear if any two code word in the code, can be
  2945. added in module 2 arithmetic to Produce a third codeword in the code.
  2946. The (n-k) bits in the remaining portion are computed from the message
  2947. bits in the accordance with the prescribed encoding rule that
  2948. determines a mathematical structure of the code, then use frame to
  2949. get the syndrome calculation.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2950. &lt;div style="margin-bottom: 0.35cm; text-indent: 1.27cm;"&gt;
  2951. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;The
  2952. hamming weight of the code vector C is defined in the number of non
  2953. zero elements in the code vector. The minimum distance of the linear
  2954. block code is defiend in the smallest hamming distance between any
  2955. pair of code vector in code.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2956. &lt;div style="margin-bottom: 0.35cm;"&gt;
  2957. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Algorithm&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  2958. &lt;br /&gt;
  2959. &lt;ol&gt;
  2960. &lt;li&gt;&lt;div style="margin-bottom: 0.35cm;"&gt;
  2961. &lt;span style="font-family: Times New Roman, serif;"&gt;Get
  2962. the generator matrix value.&lt;/span&gt;&lt;/div&gt;
  2963. &lt;/li&gt;
  2964. &lt;li&gt;&lt;div style="margin-bottom: 0.35cm;"&gt;
  2965. &lt;span style="font-family: Times New Roman, serif;"&gt;Calculate
  2966. the order of given matrix.&lt;/span&gt;&lt;/div&gt;
  2967. &lt;/li&gt;
  2968. &lt;li&gt;&lt;div style="margin-bottom: 0.35cm;"&gt;
  2969. &lt;span style="font-family: Times New Roman, serif;"&gt;calculate
  2970. the code word.&lt;/span&gt;&lt;/div&gt;
  2971. &lt;/li&gt;
  2972. &lt;li&gt;&lt;div style="margin-bottom: 0.35cm;"&gt;
  2973. &lt;span style="font-family: Times New Roman, serif;"&gt;calculate
  2974. the minimum ha&lt;/span&gt;&lt;/div&gt;
  2975. &lt;/li&gt;
  2976. &lt;li&gt;&lt;div style="margin-bottom: 0.35cm;"&gt;
  2977. &lt;span style="font-family: Times New Roman, serif;"&gt;Get
  2978. the received code word.&lt;/span&gt;&lt;/div&gt;
  2979. &lt;/li&gt;
  2980. &lt;li&gt;&lt;div style="margin-bottom: 0.35cm;"&gt;
  2981. &lt;span style="font-family: Times New Roman, serif;"&gt;Display
  2982. the hamming code&lt;/span&gt;&lt;/div&gt;
  2983. &lt;/li&gt;
  2984. &lt;li&gt;&lt;div style="margin-bottom: 0.35cm;"&gt;
  2985. &lt;span style="font-family: Times New Roman, serif;"&gt;Display
  2986. the syndrome of the code word.&lt;/span&gt;&lt;/div&gt;
  2987. &lt;/li&gt;
  2988. &lt;li&gt;&lt;div style="margin-bottom: 0.35cm;"&gt;
  2989. &lt;span style="font-family: Times New Roman, serif;"&gt;Calculate
  2990. the error in the bit.&lt;/span&gt;&lt;/div&gt;
  2991. &lt;/li&gt;
  2992. &lt;li&gt;&lt;div style="margin-bottom: 0.35cm;"&gt;
  2993. &lt;span style="font-family: Times New Roman, serif;"&gt;Display
  2994. the correlated code word.&lt;/span&gt;&lt;/div&gt;
  2995. &lt;div style="margin-bottom: 0.35cm;"&gt;
  2996. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  2997. &lt;div style="margin-bottom: 0.35cm;"&gt;
  2998. &lt;span style="font-family: Times New Roman, serif;"&gt;PROGRAM&lt;/span&gt;&lt;/div&gt;
  2999. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3000. &lt;span style="font-family: Times New Roman, serif;"&gt;#######################################&lt;/span&gt;&lt;/div&gt;
  3001. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3002. &lt;span style="font-family: Times New Roman, serif;"&gt;clc;&lt;/span&gt;&lt;/div&gt;
  3003. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3004. &lt;span style="font-family: Times New Roman, serif;"&gt;clear all;&lt;/span&gt;&lt;/div&gt;
  3005. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3006. &lt;span style="font-family: Times New Roman, serif;"&gt;close all;&lt;/span&gt;&lt;/div&gt;
  3007. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3008. &lt;span style="font-family: Times New Roman, serif;"&gt;%input generator matrix&lt;/span&gt;&lt;/div&gt;
  3009. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3010. &lt;span style="font-family: Times New Roman, serif;"&gt;g=input('enter the generator matrix:')&lt;/span&gt;&lt;/div&gt;
  3011. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3012. &lt;span style="font-family: Times New Roman, serif;"&gt;disp('G=')&lt;/span&gt;&lt;/div&gt;
  3013. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3014. &lt;span style="font-family: Times New Roman, serif;"&gt;disp('the order of linear block code for given generator mathrix is:');&lt;/span&gt;&lt;/div&gt;
  3015. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3016. &lt;span style="font-family: Times New Roman, serif;"&gt;[n,k]=size(transpose(g))&lt;/span&gt;&lt;/div&gt;
  3017. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3018. &lt;span style="font-family: Times New Roman, serif;"&gt;for i=1:2^k&lt;/span&gt;&lt;/div&gt;
  3019. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3020. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; for j=k:-1:1&lt;/span&gt;&lt;/div&gt;
  3021. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3022. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if rem(i-1,2^(-j+k+1))&amp;gt;=2^(-j+k)&lt;/span&gt;&lt;/div&gt;
  3023. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3024. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; u(i,j)=1;&lt;/span&gt;&lt;/div&gt;
  3025. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3026. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/div&gt;
  3027. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3028. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; u(i,j)=0;&lt;/span&gt;&lt;/div&gt;
  3029. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3030. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/div&gt;
  3031. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3032. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/div&gt;
  3033. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3034. &lt;span style="font-family: Times New Roman, serif;"&gt;end&lt;/span&gt;&lt;/div&gt;
  3035. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3036. &lt;span style="font-family: Times New Roman, serif;"&gt;u;&lt;/span&gt;&lt;/div&gt;
  3037. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3038. &lt;span style="font-family: Times New Roman, serif;"&gt;disp('the possible code word are:');&lt;/span&gt;&lt;/div&gt;
  3039. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3040. &lt;span style="font-family: Times New Roman, serif;"&gt;c=rem(u*g,2);&lt;/span&gt;&lt;/div&gt;
  3041. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3042. &lt;span style="font-family: Times New Roman, serif;"&gt;disp('the minimum hamming distance dmin for given block code is:');&lt;/span&gt;&lt;/div&gt;
  3043. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3044. &lt;span style="font-family: Times New Roman, serif;"&gt;d_min=min(sum((c(2:2^k,:))'))&lt;/span&gt;&lt;/div&gt;
  3045. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3046. &lt;span style="font-family: Times New Roman, serif;"&gt;%code word&lt;/span&gt;&lt;/div&gt;
  3047. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3048. &lt;span style="font-family: Times New Roman, serif;"&gt;r=input('enter the recieved code word:');&lt;/span&gt;&lt;/div&gt;
  3049. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3050. &lt;span style="font-family: Times New Roman, serif;"&gt;p=[g(:,n-k+2:n)];&lt;/span&gt;&lt;/div&gt;
  3051. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3052. &lt;span style="font-family: Times New Roman, serif;"&gt;h=[transpose(p),eye(n-k)];&lt;/span&gt;&lt;/div&gt;
  3053. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3054. &lt;span style="font-family: Times New Roman, serif;"&gt;disp('hamming code');&lt;/span&gt;&lt;/div&gt;
  3055. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3056. &lt;span style="font-family: Times New Roman, serif;"&gt;ht=transpose(h)&lt;/span&gt;&lt;/div&gt;
  3057. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3058. &lt;span style="font-family: Times New Roman, serif;"&gt;disp('syndrome of a given code word is:');&lt;/span&gt;&lt;/div&gt;
  3059. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3060. &lt;span style="font-family: Times New Roman, serif;"&gt;s=rem(r*ht,2)&lt;/span&gt;&lt;/div&gt;
  3061. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3062. &lt;span style="font-family: Times New Roman, serif;"&gt;for i=1:1:size(ht)&lt;/span&gt;&lt;/div&gt;
  3063. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3064. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; if(ht(i,1:3)==5)&lt;/span&gt;&lt;/div&gt;
  3065. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3066. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r(i)=1-r(i);&lt;/span&gt;&lt;/div&gt;
  3067. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3068. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/span&gt;&lt;/div&gt;
  3069. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3070. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/div&gt;
  3071. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3072. &lt;span style="font-family: Times New Roman, serif;"&gt;end&lt;/span&gt;&lt;/div&gt;
  3073. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3074. &lt;span style="font-family: Times New Roman, serif;"&gt;disp('the error is in bit:');&lt;/span&gt;&lt;/div&gt;
  3075. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3076. &lt;span style="font-family: Times New Roman, serif;"&gt;i;&lt;/span&gt;&lt;/div&gt;
  3077. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3078. &lt;span style="font-family: Times New Roman, serif;"&gt;disp('the correct codeword is:');&lt;/span&gt;&lt;/div&gt;
  3079. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3080. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;/span&gt;&lt;/div&gt;
  3081. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3082. &lt;span style="font-family: Times New Roman, serif;"&gt;r;&lt;/span&gt;&lt;/div&gt;
  3083. &lt;div style="margin-bottom: 0cm;"&gt;
  3084. &lt;br /&gt;&lt;/div&gt;
  3085. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3086. ###########################################################################
  3087. &lt;/div&gt;
  3088. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3089. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3090. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3091. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;Enter
  3092. the generator matrix:[1000101;0100111;0010110;0001011]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3093. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3094. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;g
  3095. =1000101&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3096. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3097.     &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;0100111&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3098. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3099.     &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;0010110&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3100. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3101.     &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;0001011&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3102. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3103. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;G
  3104. =  The order of linear block code for given generator mathrix is:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3105. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3106. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;n
  3107. = 7 &lt;/span&gt;&lt;/span&gt;
  3108. &lt;/div&gt;
  3109. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3110. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;k
  3111. = 4&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3112. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3113. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;The
  3114. possible code word are:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3115. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3116. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;0000000&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3117. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3118. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;0001011&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3119. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3120. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;0010110&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3121. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3122. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;0011101&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3123. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3124. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;0000111&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3125. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3126. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;0101100&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3127. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3128. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;0110001&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3129. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3130. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;0111010&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3131. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3132. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;1000100&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3133. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3134. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;1001110&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3135. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3136. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;1010011&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3137. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3138. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;1011000&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3139. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3140. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;1100010&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3141. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3142. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;1101001&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3143. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3144. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;1110100&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3145. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3146. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;1111111&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3147. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3148. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;The
  3149. minimum hamming distance dmin for given block code is:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3150. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3151. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;d_min
  3152. =3&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3153. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3154. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;Enter
  3155. the received code word:[1000100]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3156. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3157. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;r=1000100&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3158. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3159. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;Hamming
  3160. code&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3161. &lt;div style="margin-bottom: 0.35cm; margin-top: 0.42cm;"&gt;
  3162. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;H=&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3163. &lt;div style="margin-bottom: 0cm; margin-top: 0.42cm;"&gt;
  3164. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;101&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3165. &lt;div style="margin-bottom: 0cm; margin-top: 0.42cm;"&gt;
  3166. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;111&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3167. &lt;div style="margin-bottom: 0cm; margin-top: 0.42cm;"&gt;
  3168. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;110&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3169. &lt;div style="margin-bottom: 0cm; margin-top: 0.42cm;"&gt;
  3170. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;011&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3171. &lt;div style="margin-bottom: 0cm; margin-top: 0.42cm;"&gt;
  3172. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;100&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3173. &lt;div style="margin-bottom: 0cm; margin-top: 0.42cm;"&gt;
  3174. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;101&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3175. &lt;div style="margin-bottom: 0cm; margin-top: 0.42cm;"&gt;
  3176. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;001&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3177. &lt;div style="margin-bottom: 0cm; margin-top: 0.42cm;"&gt;
  3178. &lt;br /&gt;
  3179. &lt;/div&gt;
  3180. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3181. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;Syndrome
  3182. of t given codeword is:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3183. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3184. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;s=001&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3185. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3186. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;The
  3187. error is in bit :&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3188. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3189. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;i=7&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3190. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3191. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;The
  3192. corrected code word is : r=100010.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3193. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3194. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3195. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3196. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Result&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3197. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3198. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;
  3199.  
  3200.  
  3201.  
  3202. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3203. &lt;div style="margin-bottom: 0.35cm; text-indent: 1.27cm;"&gt;
  3204. &lt;span style="font-family: Times New Roman, serif;"&gt;Thus
  3205. the error is detected and corrected n the transmitted code by using
  3206. linear block codes.&lt;/span&gt;&lt;/div&gt;
  3207. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3208.  
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215.  
  3216.  
  3217.  
  3218.  
  3219.  
  3220.  
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243.  
  3244.  
  3245.  
  3246.  
  3247.  
  3248.  
  3249.  
  3250.  
  3251.  
  3252.  
  3253.  
  3254.  
  3255.  
  3256.  
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264. &lt;/div&gt;
  3265. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3266. &lt;br /&gt;&lt;br /&gt;
  3267. &lt;/div&gt;
  3268. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3269. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  3270. &lt;/li&gt;
  3271. &lt;/ol&gt;
  3272. &lt;/div&gt;
  3273. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ESTIMATION OF PERIODOGRAM</title><link>http://servforu.blogspot.com/2013/12/estimation-of-periodogram.html</link><category>COMMUNICATION SYSTEMS</category><category>engineering</category><category>LAB EXPERIMENT</category><category>M.E</category><category>M.TECH</category><category>MATLAB</category><category>normalized periodogram</category><category>periodogram</category><category>SIMULATION</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Fri, 27 Dec 2013 21:25:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-9123303758016715958</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  3274. &lt;div align="CENTER" style="margin-bottom: 0.35cm;"&gt;
  3275. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;ESTIMATION
  3276. OF PERIODOGRAM&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3277. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3278. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;AIM&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3279. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3280. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt; To
  3281. estimate the power spectral density of a given signal using
  3282. periodogram&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3283. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3284. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;in
  3285. MATLAB.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3286. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3287. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;THEORY&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3288. &lt;div style="margin-bottom: 0.35cm; text-indent: 1.27cm;"&gt;
  3289. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;The
  3290. power spectral density (PSD) of a WSS process is the Fourier
  3291. transform of the autocorrelation sequence. Periodogram is a
  3292. non-parametric method to estimate PSD&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3293. &lt;div style="margin-bottom: 0.35cm; text-indent: 1.27cm;"&gt;
  3294. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;()
  3295. = (k)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3296. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3297. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;For
  3298. an autocorrelation ergodic process and an unlimited amount of data,
  3299. the autocorrelation sequence may be detemined by using the time
  3300. average&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3301. &lt;div style="margin-bottom: 0.35cm; margin-left: 1.27cm; text-indent: 1.27cm;"&gt;
  3302. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;(k) = (n+k)x*(n)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3303. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3304. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;If
  3305. x(n) is only measured over a finite interval, say n=1,2,…N-1, then
  3306. the autocorrelation sequence must be estimated using with a finite
  3307. sum&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3308. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3309. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;  (r)
  3310. = () (n+k)x*(n)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3311. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3312. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;In
  3313. order to ensure that the value of x(n) that is fully outside the
  3314. interval [0,N-1] are excluded  and written as follows&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3315. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3316. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;  (k)
  3317. = () (n+k)x*(n)   k=0,1,2….,N-1.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3318. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3319. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;Taking
  3320. the discrete Fourier transform of  rx^(k) leads to an estimation of
  3321. the power spectrum known as the periodogram.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3322. &lt;div style="margin-bottom: 0.35cm; margin-left: 1.27cm; text-indent: 1.27cm;"&gt;
  3323. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;() = (k)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3324. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3325. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;The
  3326. periodogram&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3327. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3328. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt; ()
  3329. = ()() =  ()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3330. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3331. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt; Where
  3332. XN(ejw) is the discrete time Fourirer transform of the N-point data
  3333. sequence XN(n)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3334. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3335. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;  ()
  3336. = (n) = &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3337. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3338. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;ALGORITHM&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3339. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3340. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3341. 1: Compute the value of x.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3342. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3343. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3344. 2: Perform periodogram function for x signal.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3345. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3346. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3347. 3: Using pwelch function, smoothen the output of periodogram signal.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3348. &lt;br /&gt;
  3349. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3350. &lt;span style="font-family: Times New Roman, serif;"&gt;STEP
  3351. 4: Plot the graph for input and output signal&lt;/span&gt;&lt;/div&gt;
  3352. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3353. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  3354. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3355. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  3356. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3357. &lt;span style="font-family: Times New Roman, serif;"&gt;PROGRAM&lt;/span&gt;&lt;/div&gt;
  3358. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3359. &lt;span style="font-family: Times New Roman, serif;"&gt;##########################################################&lt;/span&gt;&lt;/div&gt;
  3360. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3361. &lt;span style="font-family: Times New Roman, serif;"&gt;clc;&lt;/span&gt;&lt;/div&gt;
  3362. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3363. &lt;span style="font-family: Times New Roman, serif;"&gt;clear all;&lt;/span&gt;&lt;/div&gt;
  3364. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3365. &lt;span style="font-family: Times New Roman, serif;"&gt;close all;&lt;/span&gt;&lt;/div&gt;
  3366. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3367. &lt;span style="font-family: Times New Roman, serif;"&gt;fs=1000;&lt;/span&gt;&lt;/div&gt;
  3368. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3369. &lt;span style="font-family: Times New Roman, serif;"&gt;t=0.1:1/fs:0.3;&lt;/span&gt;&lt;/div&gt;
  3370. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3371. &lt;span style="font-family: Times New Roman, serif;"&gt;x=cos(2*pi*t*200)+0.1*randn(size(t));&lt;/span&gt;&lt;/div&gt;
  3372. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3373. &lt;span style="font-family: Times New Roman, serif;"&gt;figure(1);&lt;/span&gt;&lt;/div&gt;
  3374. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3375. &lt;span style="font-family: Times New Roman, serif;"&gt;plot(x);&lt;/span&gt;&lt;/div&gt;
  3376. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3377. &lt;span style="font-family: Times New Roman, serif;"&gt;title('input signal');&lt;/span&gt;&lt;/div&gt;
  3378. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3379. &lt;span style="font-family: Times New Roman, serif;"&gt;xlabel('time');&lt;/span&gt;&lt;/div&gt;
  3380. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3381. &lt;span style="font-family: Times New Roman, serif;"&gt;ylabel('amplitude');&lt;/span&gt;&lt;/div&gt;
  3382. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3383. &lt;span style="font-family: Times New Roman, serif;"&gt;figure(2);&lt;/span&gt;&lt;/div&gt;
  3384. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3385. &lt;span style="font-family: Times New Roman, serif;"&gt;periodogram(x,[],'one sided',512,fs);&lt;/span&gt;&lt;/div&gt;
  3386. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3387. &lt;span style="font-family: Times New Roman, serif;"&gt;figure(3);&lt;/span&gt;&lt;/div&gt;
  3388. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3389. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;/span&gt;&lt;/div&gt;
  3390. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3391. &lt;span style="font-family: Times New Roman, serif;"&gt;pwelch(x,30,10,[],fs,'one sided');&lt;/span&gt;&lt;/div&gt;
  3392. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3393. &lt;span style="font-family: Times New Roman, serif;"&gt;#############################################################&lt;/span&gt;&lt;/div&gt;
  3394. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3395. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  3396. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3397. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;RESULT&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3398. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3399.  
  3400.  
  3401.  
  3402. &lt;/div&gt;
  3403. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3404. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp;Thus
  3405. the MATLAB program to estimate the power spectral density of given
  3406. signal using periodogram is executed and output is plotted.&lt;/span&gt;&lt;/div&gt;
  3407. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3408. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  3409. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3410. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  3411. &lt;/div&gt;
  3412. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>SIMULATION OF BLOCK CODES HAMMING AND CYCLIC CODES</title><link>http://servforu.blogspot.com/2013/12/simulation-of-block-codes-hamming-and.html</link><category>BLOCK CODES</category><category>COMMUNICATION SYSTEMS</category><category>CYCLIC CODES</category><category>engineering</category><category>FREQUENCY HOPPING</category><category>HAMMING CODES</category><category>LAB EXPERIMENT</category><category>M.E</category><category>M.TECH</category><category>MATLAB</category><category>Program</category><category>SIMULATION</category><category>simulator</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Fri, 27 Dec 2013 21:21:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6392573634048705929.post-7966591434694612425</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
  3413. &lt;div align="CENTER" style="margin-bottom: 0.35cm;"&gt;
  3414. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;SIMULATION
  3415. OF BLOCK CODES&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3416. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3417. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;AIM&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3418. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3419. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;To
  3420. simulate linear block coding techniques for hamming and cyclic code
  3421. using MATLAB.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3422. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3423. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;THEORY&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3424. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3425. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;HAMMING
  3426. CODES&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3427. &lt;div style="margin-bottom: 0.35cm; text-indent: 1.27cm;"&gt;
  3428. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;Consider
  3429. a family of (n,k) linear block codes that have the following
  3430. parameters.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3431. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3432. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt; Block
  3433. length,n=2&lt;/span&gt;&lt;/span&gt;&lt;sup&gt;&lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;m&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;-1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3434. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3435. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt; No.of.message
  3436. bits k=2&lt;/span&gt;&lt;/span&gt;&lt;sup&gt;&lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;m&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;-m-1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3437. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3438. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt; No.
  3439. of parity bits, n-k=m, where m&amp;gt;=3.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3440. &lt;div align="JUSTIFY" style="margin-bottom: 0.35cm; text-indent: 1.27cm;"&gt;
  3441. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;These
  3442. are so called Hamming codes. To illustrate the relations between the
  3443. minimum distance dmin and the structure of the parity check matrix H.
  3444. Consider the codeword 0110100,In the matrix multiplication is done,
  3445. and the non-zero elements of this codeword “shift” out the
  3446. second, third and fifth column of the matrix if yielding. An
  3447. important property of hamming codes is that they satisfy the
  3448. condition. t=1.This means that hamming codes are single error
  3449. correcting binary perfect codes. &lt;/span&gt;&lt;/span&gt;
  3450. &lt;/div&gt;
  3451. &lt;div align="JUSTIFY" style="margin-bottom: 0.35cm;"&gt;
  3452. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;CYCLIC
  3453. CODES&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3454. &lt;div align="JUSTIFY" style="margin-bottom: 0.35cm;"&gt;
  3455. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt; Cyclic
  3456. codes form a sub class of linear block codes.A binary code is said to
  3457. be cyclic code,if it exhibits two fundamental properties.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3458. &lt;ol&gt;
  3459. &lt;li&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0.35cm;"&gt;
  3460. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;LINEARITY
  3461. PROPERTY&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3462. &lt;/li&gt;
  3463. &lt;/ol&gt;
  3464. &lt;div align="JUSTIFY" style="margin-bottom: 0.35cm;"&gt;
  3465. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt; The
  3466. sum of two codeword is also a codeword.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3467. &lt;ol start="2"&gt;
  3468. &lt;li&gt;&lt;div align="JUSTIFY" style="margin-bottom: 0.35cm;"&gt;
  3469. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;CYCLIC
  3470. PROPERTY&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3471. &lt;/li&gt;
  3472. &lt;/ol&gt;
  3473. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3474. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt; Any
  3475. cyclic shift of codeword is also called a codeword.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3476. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3477. &lt;br /&gt;&lt;br /&gt;
  3478. &lt;/div&gt;
  3479. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3480. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;ALGORITHM&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3481. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3482. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;HAMMING
  3483. CODE &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3484. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3485. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3486. 1: Start the program&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3487. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3488. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3489. 2: Assign the number of parity bits m=4&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3490. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3491. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3492. 3: Calculate the block length n from m=2&lt;/span&gt;&lt;/span&gt;&lt;sup&gt;&lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;m&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;-1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3493. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3494. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3495. 4: Assign the number of message bits k such that n-k=m so k=11&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3496. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3497. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3498. 5: The hamming code is (5,11)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3499. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3500. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3501. 6: Obtain the input signal message randomly the input message is in
  3502. binary format&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3503. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3504. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3505. 7: The parity bits are calculated for input message taken.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3506. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3507. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3508. 8: The parity bits are appended along the message bit to form the
  3509. codeword.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3510. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3511. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3512. 9: The codeword formed is transmitted through AWGN channel&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3513. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3514. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP10:
  3515. The received signal is then decoded to retrieve the message &lt;/span&gt;&lt;/span&gt;
  3516. &lt;/div&gt;
  3517. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3518. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3519. 11: The BER is calculated for the retrieved message&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3520. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3521. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3522. 12: For the various values of the SNR and its corresponding BER,the
  3523. graph is&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3524. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3525. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;
  3526.    Plotted.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3527. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3528. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;CYCLIC
  3529. CODE&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3530. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3531. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3532. 1: Start the program.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3533. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3534. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3535. 2: Assign the block length n=7.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3536. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3537. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3538. 3: Assign the message bits,k=4.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3539. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3540. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3541. 4: The cyclic code is (7,4)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3542. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3543. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3544. 5:Generate the polynomial.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3545. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3546. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3547. 6: Obtain the input message randomly.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3548. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3549. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3550. 7: The input message is in binary format.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3551. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3552. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3553. 8: The codeword is formed by appending the parity bits with the
  3554. message bits.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3555. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3556. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP
  3557. 9: The parity bits are calculated from the generation polynomial.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3558. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3559. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP10:
  3560. The codeword formed is transmitted through AWGN channel.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3561. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3562. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;STEP11:
  3563. The received signal is then decoded with the help of generator
  3564. polynomial &lt;/span&gt;&lt;/span&gt;
  3565. &lt;/div&gt;
  3566. &lt;br /&gt;
  3567. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3568. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Knowledge to retrieve the message.&lt;/span&gt;&lt;/div&gt;
  3569. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3570. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  3571. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3572. &lt;span style="font-family: Times New Roman, serif;"&gt;PROGRAM&lt;/span&gt;&lt;/div&gt;
  3573. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3574. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  3575. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3576. &lt;span style="font-family: Times New Roman, serif;"&gt;HAMMING CODE&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  3577. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3578. &lt;span style="font-family: Times New Roman, serif;"&gt;####################################&lt;/span&gt;&lt;/div&gt;
  3579. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3580. &lt;span style="font-family: Times New Roman, serif;"&gt;clc;&lt;/span&gt;&lt;/div&gt;
  3581. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3582. &lt;span style="font-family: Times New Roman, serif;"&gt;clear all;&lt;/span&gt;&lt;/div&gt;
  3583. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3584. &lt;span style="font-family: Times New Roman, serif;"&gt;close all;&lt;/span&gt;&lt;/div&gt;
  3585. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3586. &lt;span style="font-family: Times New Roman, serif;"&gt;m=4;&lt;/span&gt;&lt;/div&gt;
  3587. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3588. &lt;span style="font-family: Times New Roman, serif;"&gt;n=2^m-1;&lt;/span&gt;&lt;/div&gt;
  3589. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3590. &lt;span style="font-family: Times New Roman, serif;"&gt;k=11;&lt;/span&gt;&lt;/div&gt;
  3591. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3592. &lt;span style="font-family: Times New Roman, serif;"&gt;berf=[];&lt;/span&gt;&lt;/div&gt;
  3593. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3594. &lt;span style="font-family: Times New Roman, serif;"&gt;for i=1:10&lt;/span&gt;&lt;/div&gt;
  3595. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3596. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; b=0;&lt;/span&gt;&lt;/div&gt;
  3597. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3598. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; for j=1:50&lt;/span&gt;&lt;/div&gt;
  3599. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3600. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msg=randint(500,k,[0,1]);&lt;/span&gt;&lt;/div&gt;
  3601. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3602. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; code=encode(msg,n,k,'hamming/binary');&lt;/span&gt;&lt;/div&gt;
  3603. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3604. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t=0:0.1:10;&lt;/span&gt;&lt;/div&gt;
  3605. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3606. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; snr=0;&lt;/span&gt;&lt;/div&gt;
  3607. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3608. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y=awgn(code,i);&lt;/span&gt;&lt;/div&gt;
  3609. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3610. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y(find(y&amp;gt;0))=1;&lt;/span&gt;&lt;/div&gt;
  3611. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3612. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y(find(y&amp;lt;0))=0;&lt;/span&gt;&lt;/div&gt;
  3613. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3614. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msgop=decode(y,n,k,'hamming/binary');&lt;/span&gt;&lt;/div&gt;
  3615. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3616. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [number,b1]=biterr(msgop,msg);&lt;/span&gt;&lt;/div&gt;
  3617. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3618. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b=b+b1;&lt;/span&gt;&lt;/div&gt;
  3619. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3620. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; end&lt;/span&gt;&lt;/div&gt;
  3621. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3622. &lt;span style="font-family: Times New Roman, serif;"&gt;&amp;nbsp; &amp;nbsp; berf(i)=b/50;&lt;/span&gt;&lt;/div&gt;
  3623. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3624. &lt;span style="font-family: Times New Roman, serif;"&gt;end&lt;/span&gt;&lt;/div&gt;
  3625. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3626. &lt;span style="font-family: Times New Roman, serif;"&gt;semilogy(1:10,berf);&lt;/span&gt;&lt;/div&gt;
  3627. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3628. &lt;span style="font-family: Times New Roman, serif;"&gt;title('performance analysis in awgn for hamming codes');&lt;/span&gt;&lt;/div&gt;
  3629. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3630. &lt;span style="font-family: Times New Roman, serif;"&gt;xlabel('snr(db)');&lt;/span&gt;&lt;/div&gt;
  3631. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3632. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;/span&gt;&lt;/div&gt;
  3633. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3634. &lt;span style="font-family: Times New Roman, serif;"&gt;ylabel('BER');&lt;/span&gt;&lt;/div&gt;
  3635. &lt;div&gt;
  3636. &lt;br /&gt;&lt;/div&gt;
  3637. &lt;div&gt;
  3638. #######################################################################&lt;br /&gt;&lt;/div&gt;
  3639. &lt;div&gt;
  3640. CYCLIC CODES&lt;/div&gt;
  3641. &lt;div&gt;
  3642. &lt;br /&gt;&lt;/div&gt;
  3643. &lt;div&gt;
  3644. &lt;div&gt;
  3645. clc;&lt;/div&gt;
  3646. &lt;div&gt;
  3647. clear all;&lt;/div&gt;
  3648. &lt;div&gt;
  3649. close all;&lt;/div&gt;
  3650. &lt;div&gt;
  3651. n=7;&lt;/div&gt;
  3652. &lt;div&gt;
  3653. k=4;&lt;/div&gt;
  3654. &lt;div&gt;
  3655. genpoly=cyclpoly(n,k,'max');&lt;/div&gt;
  3656. &lt;div&gt;
  3657. berf=[];&lt;/div&gt;
  3658. &lt;div&gt;
  3659. for i=1:10&lt;/div&gt;
  3660. &lt;div&gt;
  3661. &amp;nbsp; &amp;nbsp; b=0;&lt;/div&gt;
  3662. &lt;div&gt;
  3663. &amp;nbsp; &amp;nbsp; for j=1:50&lt;/div&gt;
  3664. &lt;div&gt;
  3665. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msg=randint(500,k,[0,1]);&lt;/div&gt;
  3666. &lt;div&gt;
  3667. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; code=encode(msg,n,k,'cyclic/binary',genpoly);&lt;/div&gt;
  3668. &lt;div&gt;
  3669. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t=0:0.1:10;&lt;/div&gt;
  3670. &lt;div&gt;
  3671. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; snr=0;&lt;/div&gt;
  3672. &lt;div&gt;
  3673. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y=awgn(code,i);&lt;/div&gt;
  3674. &lt;div&gt;
  3675. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y(find(y&amp;gt;0))=1;&lt;/div&gt;
  3676. &lt;div&gt;
  3677. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y(find(y&amp;lt;0))=1;&lt;/div&gt;
  3678. &lt;div&gt;
  3679. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; msgop=decode(y,n,k,'cyclic/binary',genpoly);&lt;/div&gt;
  3680. &lt;div&gt;
  3681. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [number,b1]=biterr(msgop,msg);&lt;/div&gt;
  3682. &lt;div&gt;
  3683. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b=b+b1;&lt;/div&gt;
  3684. &lt;div&gt;
  3685. &amp;nbsp; &amp;nbsp; end&lt;/div&gt;
  3686. &lt;div&gt;
  3687. &amp;nbsp; &amp;nbsp; berf(i)=b/50;&lt;/div&gt;
  3688. &lt;div&gt;
  3689. end&lt;/div&gt;
  3690. &lt;div&gt;
  3691. semilogy(1:10,berf);&lt;/div&gt;
  3692. &lt;div&gt;
  3693. title('performance analysis in awgn for cyclic codes');&lt;/div&gt;
  3694. &lt;div&gt;
  3695. xlabel ('snr (db)');&lt;/div&gt;
  3696. &lt;div&gt;
  3697. ylabel ('BER');&lt;/div&gt;
  3698. &lt;/div&gt;
  3699. &lt;div&gt;
  3700. &lt;br /&gt;&lt;/div&gt;
  3701. &lt;div&gt;
  3702. #########################################################&lt;/div&gt;
  3703. &lt;div&gt;
  3704. &lt;br /&gt;&lt;/div&gt;
  3705. &lt;div&gt;
  3706.  
  3707.  
  3708. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3709. &lt;span style="font-family: Times New Roman, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;RESULT&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  3710. &lt;div style="margin-bottom: 0.35cm;"&gt;
  3711. &lt;span style="font-family: Times New Roman, serif;"&gt; Thus
  3712. the linear block coding technique for hamming code and cyclic code
  3713. has been simulated using MATLAB.&lt;/span&gt;&lt;/div&gt;
  3714. &lt;/div&gt;
  3715. &lt;/div&gt;
  3716. </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item></channel></rss>
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda