<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>matlab &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/matlab/</link>
	<description>Feed of posts on WordPress.com tagged "matlab"</description>
	<pubDate>Mon, 30 Nov 2009 09:59:17 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Las campimetrias]]></title>
<link>http://becariodeinvestigacion.wordpress.com/2009/11/29/las-campimetrias/</link>
<pubDate>Sun, 29 Nov 2009 23:45:33 +0000</pubDate>
<dc:creator>Morales Martinez Jose Angel</dc:creator>
<guid>http://becariodeinvestigacion.wordpress.com/2009/11/29/las-campimetrias/</guid>
<description><![CDATA[Según varios estudios sobre el llamado Twinkle Aftereffect es posible detectar partes del campo visu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Según varios estudios sobre el llamado Twinkle Aftereffect es posible detectar partes del campo visual en las cuales no disponemos de visión (un ejemplo es el punto ciego, que es la salida del nervio óptico del ojo, en el cual no disponemos de fotorreceptores, por lo tanto, no podemos ver la luz).</p>
<p><img class="alignright" src="http://www.casacochecurro.com/images/stories/yocio/TV-nieve.jpg" alt="Una TV último modelo" width="180" height="217" />El principio básico consiste en hacer ver al paciente una pantalla con ruido/nieve (como la que aparece en la tele cuando ésta no está sintonizada con ningún canal) durante cierto tiempo (yo lo hago con un mínimo de 30 segundos, ya que necesita un tiempo para &#8220;asimilar&#8221; qué leches está viendo). Lógicamente, las zonas de la retina no funcionales visualmente hablando, no percibirán la nieve/ruido, por lo que tendrían que percibir un agujero (estos &#8220;agujeros&#8221; los podemos provocar, colocando zonas en la simulación donde no haya ruido), pero durante el proceso visual, rellenamos esos huecos, básicamente con lo que rodea al agujero. Aquí viene cuando empezamos a jugar con la visión, si, de repente, eliminamos el ruido y colocamos una pantalla del mismo color que el fondo (en mis simulaciones utilizo un gris &#8220;neutro&#8221;). El paciente, por lo general, percibe que hay ciertas zonas del fondo gris que &#8220;vibran&#8221;, &#8220;se mueven&#8221;, &#8220;hacen cosas raras&#8221;, &#8220;hostia tú, ¡qué flipada!&#8221;&#8230; Esas zonas &#8220;hostia tú, ¡qué flipada!&#8221; son las zonas de retina que no presentan función visual, por lo que &#8220;et voilà!&#8221;, ya sabemos donde están las zonas por las que el paciente no ve.</p>
<p>Como colofón, voy a colocar dos imágenes con fondo gris: Una primera que muestra el ruido con un escotoma (o &#8220;hueco de no visión&#8221;) y la imagen que percibe el paciente después de un tiempo observando el ruido (con el escotoma ya &#8220;suprimido&#8221; por el sistema visual):</p>
<p>NOTA: Para una correcta visualización de las imágenes, pulsar sobre ellas.</p>
<div id="attachment_63" class="wp-caption aligncenter" style="width: 310px"><a href="http://becariodeinvestigacion.wordpress.com/files/2009/11/campimetria1.jpg"><img class="size-medium wp-image-63" title="Campimetria1" src="http://becariodeinvestigacion.wordpress.com/files/2009/11/campimetria1.jpg?w=300" alt="" width="300" height="187" /></a><p class="wp-caption-text">El hueco se encuentra en la esquina inferior derecha del ruido</p></div>
<div id="attachment_64" class="wp-caption aligncenter" style="width: 310px"><a href="http://becariodeinvestigacion.wordpress.com/files/2009/11/campimetria2.jpg"><img class="size-medium wp-image-64" title="Campimetria2" src="http://becariodeinvestigacion.wordpress.com/files/2009/11/campimetria2.jpg?w=300" alt="" width="300" height="187" /></a><p class="wp-caption-text">Aquí podemos observar el ruido ya rellenado</p></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[HOW TO USE  “IMAGE PROCESSING's TOOLBOX” in MATLAB ^^]]></title>
<link>http://putrisiazahra.wordpress.com/2009/11/29/how-to-use-%e2%80%9cimage-processings-toolbox%e2%80%9d-in-matlab/</link>
<pubDate>Sun, 29 Nov 2009 08:04:18 +0000</pubDate>
<dc:creator>putrisiazahra</dc:creator>
<guid>http://putrisiazahra.wordpress.com/2009/11/29/how-to-use-%e2%80%9cimage-processings-toolbox%e2%80%9d-in-matlab/</guid>
<description><![CDATA[Bismillah&#8230; This time I will introduce some image processing toolbox in Matlab. How to process ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Bismillah&#8230;<br />
This time I will introduce some image processing toolbox in Matlab. How to process digital image in Matlab, how to get the pixel and so on.<br />
First, u have to install Matlab in your computer. Actually beside Matlab, u can use free software to process the digital image like Scilab or Octave. (in this software, I am not really understand, so I just use Matlab^^)<br />
at the second time, u have to get the image processing&#8217;s toolbox and install it in your Matlab.<br />
Open your Matlab then</p>
<p><strong><a href="http://putrisiazahra.wordpress.com/files/2009/11/matlab.png"><img src="http://putrisiazahra.wordpress.com/files/2009/11/matlab.png?w=300" alt="Tampilan Pertama Matlab" title="matlab" width="300" height="180" class="alignnone size-medium wp-image-29" /></a></ol>
<p><!--more--></p>
<p>After that, u can type many kind of command related about image processing. For the example, I want to rea the pixel d and convert my favorite wallpaper into gray scale. This is the example:<br />
 <a href="http://putrisiazahra.wordpress.com/files/2009/11/gambar1.png"><img src="http://putrisiazahra.wordpress.com/files/2009/11/gambar1.png?w=300" alt="Walpaper yang dikasih Ummu Mu&#39;adz^^" title="gambar1" width="300" height="180" class="alignnone size-medium wp-image-30" /></a></p>
<p>well, do you want to know what pixel in my favorite&#8217;s wallpaper?<br />
All of this is my favorite&#8217;s wallpaper&#8217;s pixels.</p>
<p>After that if you want to convert the pixel  into gray scale, you just type this coomand  I1=rgb2gray (I). and the wallpaper becomes like this<br />
<div id="attachment_33" class="wp-caption alignnone" style="width: 310px"><a href="http://putrisiazahra.wordpress.com/files/2009/11/gambar3.png"><img src="http://putrisiazahra.wordpress.com/files/2009/11/gambar3.png?w=300" alt="Gray scale Image" title="gambar3" width="300" height="180" class="size-medium wp-image-33" /></a><p class="wp-caption-text">Gray scale Image</p></div><br />
that is really so sweet, isn&#8217;t it? If  you use another software you have to type the formula to convert rgb to gray images. Like this<br />
<code></code></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[FM-CW Radar is working again after I restarted the computer]]></title>
<link>http://padrefaura.wordpress.com/2009/11/28/fm-cw-radar-is-working-again-after-i-restarted-the-computer/</link>
<pubDate>Sat, 28 Nov 2009 11:55:29 +0000</pubDate>
<dc:creator>Quirino M. Sugon Jr</dc:creator>
<guid>http://padrefaura.wordpress.com/2009/11/28/fm-cw-radar-is-working-again-after-i-restarted-the-computer/</guid>
<description><![CDATA[It happened about three weeks ago, 7 Nov 2009. Our network officer, Kuya Doods, and I tried to the c]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>It happened about three weeks ago, 7 Nov 2009.  Our network officer, Kuya Doods, and I tried to the computer connected to the FMCW radar transmitter and receiver to our local network.  In this way, I can access the data from my computer.  The FMCW radar computer has two USB ports each connected to two external hard drives for storing the radar data.  One is for the Manila Observatory.  The other is for the SERC.  These hard drives have sufficient memory for one year of data.  </p>
<p>We were not able to network the computer.  Kuya Doods asked me if we restart the computer.  I say let it be.  I think everything went awry after that.  The data are not anymore immediately sent to Japan.  But if I restart Matlab and type &#8220;manila_startup&#8221; then press &#8220;Enter&#8221;, the Matlab will &#8220;melt&#8221; the ionosonde data into visualizable graphs of the frequency versus virtual height.  After it melts the data in its stack, it waits to for its stack to get filled again.  Then I must restart Matlab again.  I emailed Akihiro Ikeda about this problem and he said there is a problem with Matlab file sending.  They will come here this 4 Dec 2009 together with Dr. Abe.  They will also change the protocol so that no data will be lost when one of the USB ports is removed to allow saving of data in flash disks.</p>
<p>Yesterday, the stack got filled to the brim and computer hung.  I panicked.  I pressed the restart button of the computer.  I thought all the data were lost.  But they were not.  They were melted properly.  And what&#8217;s more, it seems that each data set is immediately sent to Japan.  The stack height is reduced to one at any time.</p>
<p>I think it would still be good that Akihiro and Dr. Abe will be here.  My graduate student, Vernice Casareno, can already read their Matlab code.  I shall introduce her to them.  There are some parts that she can&#8217;t understand because the comments are in Japanese and she has no Japanese character file translator.  She reverse engineered the process and she can transform the .lzh files into Matlab figures.  The code looks simple to her because she works as software engineer in Cannon.  I am glad I have a hand here because I am primarily a theoretician and not a programmer.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sfida Matematica]]></title>
<link>http://sottoscala.wordpress.com/2009/11/26/sfida-matematica/</link>
<pubDate>Thu, 26 Nov 2009 15:03:56 +0000</pubDate>
<dc:creator>marlock</dc:creator>
<guid>http://sottoscala.wordpress.com/2009/11/26/sfida-matematica/</guid>
<description><![CDATA[Rieccoci qui, immersi negli abissi sconosciuti della matematica! Oggi vi propongo questo quesito: Sa]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:center;"><img class="size-full wp-image-123 aligncenter" title="TechnoLogical" src="http://sottoscala.wordpress.com/files/2009/10/tech2.png" alt="TechnoLogical" width="497" height="45" /></p>
<p>Rieccoci qui, immersi negli abissi sconosciuti della matematica!<br />
Oggi vi propongo questo quesito:</p>
<p>Sapendo che j è l&#8217;<a href="http://it.wikipedia.org/wiki/Unit%C3%A0_immaginaria">unità immaginaria</a>, quanto fa <img src='http://l.wordpress.com/latex.php?latex=j%5Ej&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='j^j' title='j^j' class='latex' /> ?</p>
<p>Non usate trucchi come calcolatrici o programmi tipo matlab! Voglio vedere tutti i passaggi! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Buona Fortuna</p>
<p><a title="Condividi su Facebook" href="http://www.facebook.com/share.php?u=http://sottoscala.wordpress.com/2009/11/26/sfida-matematica/"><img src="http://sottoscala.wordpress.com/files/2009/10/facebook_64x64.png" alt="" width="20" height="20" /> Condividi su Facebook</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Las imágenes amigas]]></title>
<link>http://becariodeinvestigacion.wordpress.com/2009/11/25/las-imagenes-amigas/</link>
<pubDate>Wed, 25 Nov 2009 23:13:43 +0000</pubDate>
<dc:creator>Morales Martinez Jose Angel</dc:creator>
<guid>http://becariodeinvestigacion.wordpress.com/2009/11/25/las-imagenes-amigas/</guid>
<description><![CDATA[Después de varios días de inactividad bloguera, vuelvo a las andadas: Parece que Matlab y yo nos hem]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Después de varios días de inactividad bloguera, vuelvo a las andadas:</p>
<p>Parece que <a href="http://www.mathworks.com/">Matlab</a> y yo nos hemos reconciliado y, aunque sigo con mi cruzada por el software libre y sigo apostando por <a href="http://www.gnu.org/software/octave/">Octave</a>, en el trabajo utilizo indistintamente ambos.</p>
<p>Mi gran logro ha llegado hoy, de mano de la inspiración divina y la ciencia infusa, aunque tengo que dar las gracias a un sueño que tuve anoche, os pongo en antecedentes:</p>
<p>Llevo una semana y media enfrascado en la difícil situación de cómo conseguir que Matlab/Octave, más concretamente el paquete <a href="http://psychtoolbox.org/wikka.php?wakka=HomePage">Psychtoolbox</a>, entienda que cuando quiero utilizar 3 imágenes e interactuar con ellas para &#8220;montarlas&#8221; una sobre otra no significa que quiero sustituya una por la otra, sino que las 3 funcionen a la vez. La finalidad de ésto es mostrar a los alumnos de la <a href="http://www.um.es/eu-optica">Escuela de Óptica de la UMU</a> cómo es realmente la visión humana (prometo colgar un par de imágenes).</p>
<p>Pues bien, anoche tuve un sueño en el que las imágenes iban cogidas de la mano y la primera de ellas guiaba a las otras y una lucecita se encendió en mi cabeza, a pesar de mi cansancio de anoche (llegué más tarde de la cuenta gracias a los dos engendros que tengo por compañeros de tertulias y puesta común de ideas y proyectos)&#8230; como iba contando, a pesar del cansancio, enchufé el ordenador, arranqué <a href="http://www.ubuntu.com/">Ubuntu</a> (sí, trabajo en casa con <a href="http://www.gnu.org/philosophy/free-sw.es.html">soft libre</a>) y Octave hizo el resto, escribí unas cuantas líneas de código, guardé y ejecuté la simulación&#8230;</p>
<p>Parece que las imágenes no eran tan amigas como en mi sueño, me vuelvo a la cama a chafar un poco la oreja&#8230;</p>
<div id="attachment_58" class="wp-caption alignright" style="width: 370px"><a href="http://becariodeinvestigacion.wordpress.com/files/2009/11/largasnumeros.jpg"><img class="size-full wp-image-58" title="largasnumeros" src="http://becariodeinvestigacion.wordpress.com/files/2009/11/largasnumeros.jpg" alt="" width="360" height="305" /></a><p class="wp-caption-text">Aquí estoy yo programando con Octave</p></div>
<p>¡Otro sueño! Las imágenes ya no van de la mano, simplemente la primera guía al resto con una linterna en la mano en medio de la oscuridad, simplemente que una le dice a la otra por dónde debe ir y ésta a la última&#8230; Vuelvo a conectar el ordenador, arranco Ubuntu, Octave&#8230; escribo líneas de código, parece que va&#8230; pantalla en blanco&#8230; pantalla en gris&#8230; me crea las máscaras de transparencia&#8230; monta solo dos imágenes&#8230; ¡no! hace un pequeño esfuerzo&#8230; ¡sí! monta las tres imágenes&#8230; faltan depurar un par de detalles, pero el resultado es esperanzador.</p>
<p>Por cierto, no puedo olvidar que las imágenes fueron desenfocadas por mi coleguita Antonio de BBAA (también fue cámara de televisión, pero prefiere que no le recordemos esa época&#8230; una larga historia).</p>
<p>PD. El viernes 11 de Diciembre conferencia en el <a href="http://maps.google.es/maps?f=q&#38;source=s_q&#38;hl=es&#38;geocode=&#38;q=38.021981,-1.172711&#38;sll=40.396764,-3.713379&#38;sspn=7.595612,14.128418&#38;ie=UTF8&#38;t=h&#38;z=16">Centro Social Universitario de la Universidad de Murcia</a> (con la flecha verde) sobre mi labor como Becario de Investigación, trataré de llevar simulaciones y unos cuantos ejemplos.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[More tips to surviving NUS]]></title>
<link>http://tehloft.wordpress.com/2009/11/25/more-tips-to-surviving-nus/</link>
<pubDate>Tue, 24 Nov 2009 19:47:43 +0000</pubDate>
<dc:creator>Jemuel</dc:creator>
<guid>http://tehloft.wordpress.com/2009/11/25/more-tips-to-surviving-nus/</guid>
<description><![CDATA[Ok, this mainly applies to Engineering and Science students&#8230; Probably to many graduates who ar]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ok, this mainly applies to Engineering and Science students&#8230; Probably to many graduates who are in the same field as well.</p>
<p>In your time in university, there will be many occasions where you require specialised software for the module you are taking. Most of these softwares <strong>recommended</strong> by the lecturers are commonly:</p>
<p>- Many version outdated (to the point its free)</p>
<p>- Student versions (SV) which is usually many versions outdated</p>
<p>- Old and outdated to the point that it&#8217;s incompatible with Vista and Win7</p>
<p>- Trial software with a license that would last about 3 months (about the length of 1 semester)</p>
<p>- Highly inadequate functionality as it&#8217;s free</p>
<p>Now why the hell would they recommend such crap software? Simple, we all like to work on our own computers  and not camp on campus fighting for computer terminals&#8230; Hence, lecturers like to help us a little by recommending some software that is free and supposedly adequate for the module. However, as you progress beyond the learning stage, you end up researching and realise that the shit that you&#8217;ve got in the computer is like 1% of what you really need&#8230; Here&#8217;s an example.</p>
<p>Dev C++ is a C++ programming tool. It&#8217;s free, it&#8217;s highly outdated (as it&#8217;s used to test for some higher version which i cannot remember), it works, but here&#8217;s the catch. While compiling and verifying, it tells you that there&#8217;s an ERROR, not a syntax/int/float/whatever? error, but an ERROR. That&#8217;s all it&#8217;ll tell you. You either know what&#8217;s wrong or go figure. On the brighter side, you get damn good at spotting your own errors and know exactly what needs to be done, eventually (usually by the time the module is over).</p>
<p>So let me get to the point of this&#8230; There are some work-arounds available to such crap software and I&#8217;d like to share them with you. At the same time, I&#8217;d like to recommend some software that is worth some &#8220;investment&#8221;.</p>
<p><a href="http://eclipse.org/" target="_blank">Eclipse</a></p>
<p>OS: Mac OSX and Windows</p>
<p>Price: Free</p>
<p>Eclipse provides and extremely powerful environment for the programmer, noob or pro, to program and debug the program.</p>
<p><a href="http://my.ece.ucsb.edu/bobsclass/2C/Simulation/circuit_maker.htm" target="_blank">Circuit Maker SV</a></p>
<p>OS: WinXP</p>
<p>Price: Free</p>
<p>Circuit maker is an extremely old circuit simulation software that not only allows for schematic drawing, but also comes with PCB layout functionality. Circui Maker has recent been renamed into <a href="http://www.circuitmaker.com/">Altium</a> which is somewhat the same, but no free version to my knowledge.</p>
<p><a href="http://www.mathworks.com/products/matlab/">MATLAB</a></p>
<p>OS: Win XP, Vista, Mac OS X</p>
<p>Price: Unknown (but it&#8217;s about 200-700 depending on SV or Retail)</p>
<p>MATLAB 2009 comes in several version, 2009a, b and c. 2009b is what I consider the retail product offered to general users whereas 2009a is the student version. 2009r would be the enterprise version with multiple licenses. Though expensive, you would be using this software for a good portion of your study. All versions come with Simulink, a powerful simulation software that allows you model and simulate just about anything.</p>
<p>IMAP supported e-mail application Exchange would be good as well)</p>
<p>There is no right answer for this, there are some commonly available applications:</p>
<p>Outlook &#8211; Windows</p>
<p>Mail &#8211; Mac OS X</p>
<p><a href="http://www.mozillamessaging.com/en-US/thunderbird/">Mozilla Thunderbird</a> &#8211; Linux, Windows, Mac (Free)</p>
<p>In your lifetime, you&#8217;d accumulate several e-mail addresses for some strange reason. Like me, you probably started with something like extraboy1985@hotmail.com, then as you got older, you thought to yourself &#8220;what the f*ck was I thining?!&#8221; Opened a new account like j_boy@hotmail.com, again, WTF?! Still, you stuck with it. Then realised that hotmail sucks and moved to Yahoo or whatever. You realised that you&#8217;d like to keep some of these e-mail accounts (for some strange reason). Admit it, you bitch and complain about logging on to ALL YOUR 3-4 accounts everyday and having to clear them one-by-one. Not only that, you now have school/company e-mail to handle&#8230;</p>
<p>E-mail applications to the rescue! Most applications come with 2 basic incoming e-mail protocols, POP3 and IMAP. POP3 is extremely simple, it just scans your mail account and downloads all the new mail (depending on how much you want to download, can be just the subject or the whole damn thing). IMAP however, synchronises with the account, and basically sets up all the folders you have in the account as well (this may get irritating, but there work-arounds). So, what ever you see in your app, is what&#8217;s in the online account. This gets really handy for handling multiple e-mail accounts and most of these applications update you with some form of alert. Hence you do not need to remind yourself to check your mail.</p>
<p>Of course, you can always use mail forwarding and stuff, but why bother to start up your browser and again check you mail when you have an app that&#8217;s already up and running and constantly checking your mail? There is one thing to note, hotmail does not support any of these applications, hence, I suggest you switch to something else, like Gmail which comes with IMAP.</p>
<p>With regards to further management of E-mail accounts, I&#8217;ll leave it to YK as he&#8217;s got something on hand.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Hanging About]]></title>
<link>http://michaelhutchins.wordpress.com/2009/11/19/hanging-about/</link>
<pubDate>Thu, 19 Nov 2009 18:59:35 +0000</pubDate>
<dc:creator>michaelhutchins</dc:creator>
<guid>http://michaelhutchins.wordpress.com/2009/11/19/hanging-about/</guid>
<description><![CDATA[It is starting to get cold. After trying to program an almost intractable problem it is fun to help ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div id="attachment_1707" class="wp-caption aligncenter" style="width: 510px"><a href="http://michaelhutchins.wordpress.com/files/2009/11/cold-leaves.jpg"><img class="size-full wp-image-1707" title="Cold Leaves" src="http://michaelhutchins.wordpress.com/files/2009/11/cold-leaves.jpg" alt="" width="500" height="335" /></a><p class="wp-caption-text">It is starting to get cold.</p></div>
<p>After trying to program an almost intractable problem it is fun to help my roommates with their Matlab homework. Especially since I have never had a dedicated programming course before. And because their homework problem is very reasonable in what it asks and what it needs.</p>
<p>VLF attenuation in the earth-ionospehre waveguide is not as easy.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sometimes I jog]]></title>
<link>http://traustihannesson.wordpress.com/2009/11/19/sometimes-i-jog/</link>
<pubDate>Thu, 19 Nov 2009 15:41:26 +0000</pubDate>
<dc:creator>traustihannesson</dc:creator>
<guid>http://traustihannesson.wordpress.com/2009/11/19/sometimes-i-jog/</guid>
<description><![CDATA[Í gær var ótrúlega fallegt veður svo ég tók mér pásu frá Matlab forritun og skokkaði einn stuttan hr]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Í gær var ótrúlega fallegt veður svo ég tók mér pásu frá Matlab forritun og skokkaði einn stuttan hring í hádeginu. Þetta er liður í átakinu <em>Í kjólin fyrir jólin</em> sem hófst á mánudaginn með eins kílómetra sundsprett í hádeginu.</p>
<p>&#160;</p>
<div id="attachment_67" class="wp-caption aligncenter" style="width: 460px"><a href="http://traustihannesson.wordpress.com/files/2009/11/laugardalur.jpg"><img class="size-full wp-image-67" title="laugardalshringur" src="http://traustihannesson.wordpress.com/files/2009/11/laugardalur.jpg" alt="" width="450" height="410" /></a><p class="wp-caption-text">gúúgel jörð hjálpaði mér við þetta</p></div>
<p>Hringurinn sem sjá má á mynd 1 var hlaupinn á 25:08 min sem gerir ca. 12 km/klst. Kannski ég hendi upp Matlab forriti til að fylgjast með hlaupunum. Djók.</p>
<p>Fór svo til tannlæknis í hádeginu í dag. Tannréttingartannlæknis. Ég hafði ekki farið til hans síðan 2004 og ætti held enn að vera nota helvítis góminn sem ég hef örugglega ekki notað síðan 2004. Þetta leit þó allt ágætlega út sagði hann nema hvað ein tönn hafði færst örlítið. Hann vill því taka járnspelkurnar í efrigóm (já, ég er með svoleiðis) en búa til nýjan góm sem ég get notað bara svona til að tjekka hvort allt sé ekki á sínum stað. Spelkurnar í neðri góm (já, ég er líka með svoleiðis) fæ ég hins vegar að taka með mér í gröfina að hans sögn. Jei. Þessi maður er smámunasamasti tannlæknir á Íslandi er ég viss um og mig minnir að Sverrir hafi tekið undir það með mér, tannlæknaneminn sjálfur.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Ring Transform for Template Matching]]></title>
<link>http://sgsmmp.wordpress.com/2009/11/19/ring-transform-for-template-matching/</link>
<pubDate>Thu, 19 Nov 2009 08:09:39 +0000</pubDate>
<dc:creator>sgsawant</dc:creator>
<guid>http://sgsmmp.wordpress.com/2009/11/19/ring-transform-for-template-matching/</guid>
<description><![CDATA[After trying to get a lot of my friends(Rushi, Avdhut, Abhinav, Pooja, Hari and Deepti) to read ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } --><span style="font-size:x-small;">After trying to get a lot of my friends(Rushi, Avdhut, Abhinav, Pooja, Hari and Deepti) to read &#8220;Template matching using the parametric template vector with translation, rotation and scale invariance&#8221; by Yi-Hsien Lina, Chin-Hsing Chenb I was still unable to completely understand the algorithm. After some final discussion with Deepti and Avdhut, I think &#8211; even with an incomplete understanding &#8211; I am in a position to begin. </span></p>
<p>The first thing that has to be implemented is the algorithm to find the ring projection vector. The circle drawing algorithm published a few posts ago comes in handy &#8211; only instead of writing the circle pixels, the intensity values have to be read from the pixels. The following matlab code converts a given template to a 1-D vector which is the templates ring projection transform. That is, it consists of average intensity values on concentric circles starting from the center of the template. The last circle is the largest circle that can fit within the template.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>%Title: Ring Transform for Template Matching<br />
%Author: Shashank G. Sawant<br />
%File Name: ringtrans.m<br />
%Notes: Converts a given template (or any part of a sufficiently<br />
%large image) into a 1-D Vector. It calculates the average pixel<br />
%intensities at progressively increasing radii and stores them in a vector.<br />
%Parameters:<br />
%img &#8211; The image or template whose ring transform is required<br />
%y &#8211; The y coordinate of the center of all the circles<br />
%x &#8211; The x coordinate of the center of all the circles<br />
%lr &#8211; the radius of the largest circle.</p>
<p>function ringvect=ringtrans(img,y,x,lr)<br />
ringvect=1:lr+1;<br />
for i=1:size(ringvect,2)<br />
ringvect(i)=readcirc(img,y,x,i-1);<br />
end</p>
<p>% Title: Read Circle Values<br />
% Notes: Accepts an image, the circle&#8217;s center&#8217;s coordinates and radius as<br />
% the arguments. Calculates the average value of pixel intensities on the<br />
% circle thus specified.</p>
<p>function avgint =readcirc(imgmat, yCenter, xCenter, radius)      %<br />
x = 0;<br />
y = radius;<br />
p = floor((5 &#8211; radius*4)/4);<br />
global cir_val cir_pix_num;<br />
uint32 cir_val;<br />
uint16 cir_pix_num;<br />
cir_val=0;<br />
cir_pix_num=0;<br />
cirpoints(imgmat, yCenter, xCenter, y, x);</p>
<p>while x &#60; y,<br />
x=x+1;<br />
if (p&#60;0)<br />
p = p + 2*x+1;<br />
else<br />
y=y-1;<br />
p = p + 2*(x-y)+1;<br />
end<br />
cirpoints(imgmat, yCenter, xCenter, y, x);<br />
end<br />
avgint=cir_val/uint32(cir_pix_num);<br />
return;</p>
<p>function cirpoints(img, cy, cx, y, x)<br />
if (x == 0)<br />
readpix(img, cy + y, cx);<br />
readpix(img, cy &#8211; y, cx);<br />
readpix(img, cy, cx + y);<br />
readpix(img, cy, cx &#8211; y);<br />
elseif (x == y)<br />
readpix(img, cy + y, cx + x);<br />
readpix(img, cy + y, cx &#8211; x);<br />
readpix(img, cy &#8211; y, cx + x);<br />
readpix(img, cy &#8211; y, cx &#8211; x);<br />
elseif (x &#60; y)<br />
readpix(img, cy + y, cx + x);<br />
readpix(img, cy + y, cx &#8211; x);<br />
readpix(img, cy &#8211; y, cx + x);<br />
readpix(img, cy &#8211; y, cx &#8211; x);<br />
readpix(img, cy + x, cx + y);<br />
readpix(img, cy + x, cx &#8211; y);<br />
readpix(img, cy &#8211; x, cx + y);<br />
readpix(img, cy &#8211; x, cx &#8211; y);<br />
end<br />
return;</p>
<p>function readpix(img,y,x)<br />
global cir_val cir_pix_num;<br />
uint32 cir_val;<br />
uint16 cir_pix_num;<br />
cir_val = cir_val + uint32(img(y,x));<br />
cir_pix_num=cir_pix_num+1;</p>
<p>return;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p style="text-align:center;">Following is the image of a ship&#8217;s profile (it&#8217;s incomplete but the features are sharp).</p>
<p style="text-align:center;"><a href="http://sgsmmp.wordpress.com/files/2009/11/ss_ship.jpg"><img class="size-full wp-image-39 aligncenter" title="ss_ship" src="http://sgsmmp.wordpress.com/files/2009/11/ss_ship.jpg" alt="" width="39" height="39" /></a></p>
<p><span style="font-size:x-small;">The size of the template is small (39 x 39). </span></p>
<p><em>img=imread(&#8217;ss_ship.jpg&#8217;);<br />
img=rgb2gray(img);<br />
ringvect=ringtrans(img,20,20,19);<br />
plot(ringvect,&#8217;*');</em></p>
<p>The above commands yield the ring projection vector, which when plotted, looks like:</p>
<p><a href="http://sgsmmp.wordpress.com/files/2009/11/ss_ship_rpt.jpg"><img class="aligncenter size-medium wp-image-40" title="ss_ship_rpt" src="http://sgsmmp.wordpress.com/files/2009/11/ss_ship_rpt.jpg?w=300" alt="" width="300" height="225" /></a>The values near the origin represent the darkest (red color) parts of the ships. As the circles enlarge, more and more white part (surrounding the ship) get included and the value of the rpt vector increases along the +ve X-axis.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Embry-Riddle Team Leader Shows Love with MATLAB Ink]]></title>
<link>http://greengarageblog.org/2009/11/17/embry-riddle-team-leader-shows-love-with-matlab-ink/</link>
<pubDate>Tue, 17 Nov 2009 19:14:40 +0000</pubDate>
<dc:creator>ggguest</dc:creator>
<guid>http://greengarageblog.org/2009/11/17/embry-riddle-team-leader-shows-love-with-matlab-ink/</guid>
<description><![CDATA[Vince Sabatini, the Embry-Riddle team leader, is taking his love for EcoCAR and the program&#8217;s ]]></description>
<content:encoded><![CDATA[Vince Sabatini, the Embry-Riddle team leader, is taking his love for EcoCAR and the program&#8217;s ]]></content:encoded>
</item>
<item>
<title><![CDATA[Numerical ODE Solvers]]></title>
<link>http://sphericalcow.wordpress.com/2009/11/17/numerical-ode-solvers/</link>
<pubDate>Tue, 17 Nov 2009 16:37:52 +0000</pubDate>
<dc:creator>sc</dc:creator>
<guid>http://sphericalcow.wordpress.com/2009/11/17/numerical-ode-solvers/</guid>
<description><![CDATA[In MATLAB, the suite of numerical solvers for systems of ordinary differential equations are functio]]></description>
<content:encoded><![CDATA[In MATLAB, the suite of numerical solvers for systems of ordinary differential equations are functio]]></content:encoded>
</item>
<item>
<title><![CDATA[Tugas Kuliah Polinomial Matlab]]></title>
<link>http://banglikul.wordpress.com/2009/11/17/tugas-kuliah-polinomial-matlab/</link>
<pubDate>Tue, 17 Nov 2009 08:18:03 +0000</pubDate>
<dc:creator>likul</dc:creator>
<guid>http://banglikul.wordpress.com/2009/11/17/tugas-kuliah-polinomial-matlab/</guid>
<description><![CDATA[POLINOMIAL – POLINOMIAL INTERPOLASI Interpolasi adalah proses estimasi terhadap pasangan titik datar]]></description>
<content:encoded><![CDATA[POLINOMIAL – POLINOMIAL INTERPOLASI Interpolasi adalah proses estimasi terhadap pasangan titik datar]]></content:encoded>
</item>
<item>
<title><![CDATA[Saving figures in MATLAB and string concatenation]]></title>
<link>http://sphericalcow.wordpress.com/2009/11/17/saving-figures-in-matlab-and-string-concatenation/</link>
<pubDate>Tue, 17 Nov 2009 06:05:42 +0000</pubDate>
<dc:creator>sc</dc:creator>
<guid>http://sphericalcow.wordpress.com/2009/11/17/saving-figures-in-matlab-and-string-concatenation/</guid>
<description><![CDATA[An economics graduate student and friend of mine recently asked Google out of frustration, &#8220;Ho]]></description>
<content:encoded><![CDATA[An economics graduate student and friend of mine recently asked Google out of frustration, &#8220;Ho]]></content:encoded>
</item>
<item>
<title><![CDATA[Supressing Warnings in Matlab]]></title>
<link>http://hikerslogbook.wordpress.com/2009/11/16/supressing-warnings-in-matlab/</link>
<pubDate>Mon, 16 Nov 2009 05:16:58 +0000</pubDate>
<dc:creator>amanbh</dc:creator>
<guid>http://hikerslogbook.wordpress.com/2009/11/16/supressing-warnings-in-matlab/</guid>
<description><![CDATA[Note to self: To supress matlab from printing warnings on the command window, use warnings off at th]]></description>
<content:encoded><![CDATA[Note to self: To supress matlab from printing warnings on the command window, use warnings off at th]]></content:encoded>
</item>
<item>
<title><![CDATA[Working with 3D matrix in Matlab]]></title>
<link>http://whatevericode.wordpress.com/2009/11/16/working-3d-matrix-in-matlab/</link>
<pubDate>Mon, 16 Nov 2009 01:17:26 +0000</pubDate>
<dc:creator>mohsenam</dc:creator>
<guid>http://whatevericode.wordpress.com/2009/11/16/working-3d-matrix-in-matlab/</guid>
<description><![CDATA[To visualize the 3D matrix just consider that them as stack of images or layers. {There is one more ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>To visualize the 3D matrix just consider that them as stack of images or layers.</p>
<p>{There is one more very important way,  that is third dimension representing the feature vector&#8217;s length}</p>
<p>So a(:, :, i) = all elements in the layer i, so changing i will give you next image.</p>
<p>where a(r,c, i) will move in the image.</p>
<pre class="brush: cpp;">
a = [];
a(:,1,:) = [111 112 113 114 ; 121 122 123 124 ; 131 132 133 134];
a(:,2,:) = [211 212 213 214 ; 221 222 223 224 ; 231 232 233 234];
a(:,3,:) = [311 312 113 114 ; 321 322 323 324 ; 331 332 333 334];
a(:,4,:) = [411 412 113 114 ; 421 422 423 424 ; 431 432 433 434];
a(:,5,:)= [511 512 513 514 ; 521 522 523 524 ; 531 532 533 534];
</pre>
<p>Will make the 3D matrix &#8216;a&#8217;</p>
<pre class="brush: cpp;">
size(a)

ans =

     3     5     4
</pre>
<p>That is there are 4 images and each image is of 3 rows and 5 cols.</p>
<p>But let&#8217;s Say you want to represent 3rd dimension as the feature vector  so each a(r,c, : ) represents a feature vector.</p>
<p>Now let&#8217;s say you want to make a 3D matrix from one feature vector.</p>
<pre class="brush: cpp;">

vt = squeeze([a( 2,1, : ) ] );
vt = vt(:)';
%//make it into 2 by 3 by length(feature) matrix
%//repmat will repeat this matrix and make a 6 row matrix
%//the reshape picks the elements from the 1st col, 1st row and start moving downward in the row and so on
%//therefore each time it will meet same element as it moves down the row and fills our first image
tempT = (reshape(repmat(vt, 2*3,1), 2, 3, length(vt)));
size(tempT)
ans =
     2     3     4
</pre>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Connection between Matlab and MySQL]]></title>
<link>http://lulus2009.wordpress.com/2009/11/15/connection-between-matlab-and-mysql/</link>
<pubDate>Sun, 15 Nov 2009 14:32:56 +0000</pubDate>
<dc:creator>lulus2009</dc:creator>
<guid>http://lulus2009.wordpress.com/2009/11/15/connection-between-matlab-and-mysql/</guid>
<description><![CDATA[source: http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-get-matlab-to-talk-to-mysql/ t]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>source: <a href="http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-get-matlab-to-talk-to-mysql/" target="_blank">http://desk.stinkpot.org:8080/tricks/index.php/2006/02/how-to-get-matlab-to-talk-to-mysql/</a></p>
<p>the codes: (store to mysql db from matlab) -&#62; <a href="http://www.pastie.org/699617">link</a><br />
<code><span style="color:#008000;"><em>%buat koneksi dengan database mysql.</em></span><br />
conn = database('tws','root','password','com.mysql.jdbc.Driver','jdbc:mysql://localhost:3306/tws');</code></p>
<p><span style="color:#008000;"><em>%preparing the result from fem and converting the data to cell type.</em></span><br />
<code>dd=d';<br />
dd=num2cell(dd);<br />
for i=1:25<br />
exdata(:,i)=dd(:,i);<br />
end</code></p>
<p><span style="color:#008000;"><em>%what columns would be insert to.</em></span><br />
<code>colnames = {'tf1','tf2','tf3','tf4','tf5','tf6','tf7','tf8','tf9','tf10',...<br />
'tf11','tf12','tf13','tf14','tf15','tf16','tf17','tf18','tf19','tf20',...<br />
'tf21','tf22','tf23','tf24','tf25'};</code></p>
<p><span style="color:#008000;"><em>%insert some pieces of data.</em></span><br />
<code>fastinsert(conn, 'fem', colnames, exdata);</code></p>
<p>-Alhamdulillah-<br />
agung.ridwan.sn</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Thanda Matlab Coca Cola: But, Thanda nahi hai......]]></title>
<link>http://sohandhande.wordpress.com/2009/11/15/thanda-matlab-coca-cola-but-thanda-nahi-hai/</link>
<pubDate>Sun, 15 Nov 2009 11:03:44 +0000</pubDate>
<dc:creator>sohandhande</dc:creator>
<guid>http://sohandhande.wordpress.com/2009/11/15/thanda-matlab-coca-cola-but-thanda-nahi-hai/</guid>
<description><![CDATA[Brand : Coke Agency: McCann Baseline : Piyo sar Utha Ke Well &#8230;&#8230;.. Marketers some times b]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Brand : Coke</p>
<p>Agency: McCann</p>
<p>Baseline : Piyo sar Utha Ke</p>
<p>Well &#8230;&#8230;..</p>
<p>Marketers some times behaves like fools !!!!!!</p>
<p>Why the hell one should change their best positioning statement ? Every one loved the &#8221; thanda &#8221; campaign, there were rave reviews about Aamir and Coke. People looked forward to the next Aamir avatar &#8230;&#8230;&#8230;</p>
<div class="wp-caption alignright" style="width: 323px"><img class=" " title="coca cola" src="http://www.thecoca-colacompany.com/presscenter/img/imagebrands/downloads/lg_new_coke_logo.jpg" alt="" width="313" height="313" /><p class="wp-caption-text">coca cola</p></div>
<p>Then it was a surprise.. there is no thanda but some blabbering about drinking coke &#8221; Sar Utha ke?</p>
<p>Coke never had good time with respect to its advertising in India. Never in their second life in India, they have delivered good campaigns. Pepsi always scored with their campaigns like&#8221; Ye dil maange more&#8221; Yehi hai right choice baby&#8221;, &#8221; Nothing official about it&#8221;.</p>
<p>Then came the Thanda matlab &#8220;Coca- Cola&#8221; campaign which blew the hell out of Pepsi. Well how can anyone own some thing like &#8221; Thanda&#8221;. Similar to XEROX, Coke was trying to own a whole category as such.</p>
<p>Then Coke changed the campaign , Why? I don&#8217;t have the answer may be the creatives in McCann may have it.  The current campaign speaks nothing. I use a straw to drink Coke, so how can I drink coke sar Utha ke? Most of the time when I tried drinking directly from the bottle, I had encountered some unpleasant taste of &#8220;rust&#8221; from the cap of the bottle. What about the South Indians and othe non Hindi speaking consumers? Will they be impressed by the base line?</p>
<p>An opportunity lost for Coke . they had one BIG IDEA in &#8221; Thanda Matlab Coca-Cola &#8220;and they blew it off</p>
<p>marketingpractice.blogspot.com/2005/11/coca-cola-thanda-nahin-hai.html</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Basics of simulation]]></title>
<link>http://arunwaves.wordpress.com/2009/11/14/basics-of-simulation/</link>
<pubDate>Sun, 15 Nov 2009 06:30:54 +0000</pubDate>
<dc:creator>Arun</dc:creator>
<guid>http://arunwaves.wordpress.com/2009/11/14/basics-of-simulation/</guid>
<description><![CDATA[&#8220;Experiments are as good as your instruments and simulations are as good as your assumptions]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><em>&#8220;Experiments are as good as your instruments and simulations are as good as your assumptions&#8221;</em> &#8211; Prof. D. K. Ferry, Arizona State University</p>
<p>This post will discuss the basics of simulation (done by writing a code in any of the many programming languages). There are numerous tutorials on the web and there is no dearth of good books on this subject hence I will keep it very simple. The following figure will help in the discussion.</p>
<p><img class="size-large wp-image-90 alignnone" title="Grid" src="http://arunwaves.wordpress.com/files/2009/11/grid2.png?w=1024" alt="Grid" width="719" height="315" /></p>
<p>Imagine you have a rectangular surface of length &#8216;L&#8217; (along x-axis) and width &#8216;W&#8217; (y-axis) and you need to model some physical process in that region. The idea is to divide the region of interest into many points (grid) and solve equations describing the physical process at each grid point and this would tell us how the physical process would behave within the rectangle.Now one of the first things to do is to decide on a suitable grid size, i.e. the distance between two grid points (indicated by &#8216;a&#8217; in the above diagram). The grid size should be small enough to capture the intricacies of the process, i.e. smaller than the characteristic distances within which interesting phenomenon occur but it should not be too small (more on it in the next paragraph). In this case a grid size of &#8216;a&#8217; divides the width into &#8216;k&#8217; points (k-1=W/a) and length into &#8216;m&#8217; points (m-1=L/a). Thus any point in the rectangle can be represented by a 2 element co-ordinate system. For example the red dot is (3,4), i.e. 3rd row and 4th column. Sometimes it would be convenient/efficient to use a radial co-ordinate system (r,θ).</p>
<p>Now comes the computation: the above paragraph indicates that in total we have &#8216;m × k&#8217; points and the equations describing the physical process must be solved at each of these points. This leads to the lower limit of the grid size. If it is too small then the number of points where one must perform computation increases hyperbolically; very soon your code&#8217;s run time will get increasingly uncomfortable and your program/computer may run out of memory. The initial tests of your simulation should be aimed at determining an optimum grid size. Note: In some cases the grid size may have one value for the horizontal axis and a different value for the vertical axis, in this case the grid size will be &#8216;a× b&#8217; where &#8216;a&#8217; is the grid size along length and &#8216;b&#8217; is the grid size along width. And there are cases where the grid size may be variable, i.e. small in areas of interest and large in nonessential areas.</p>
<p>As some of you may have noticed this is a 2 dimensional (2D) simulation since there are two length based attributes in our region of interest, namely the length and the width. This can be expanded to perform a 3 dimensional (3D) simulation by solving the equations along the z-axis also but be prepared to compute in at least &#8216;m × k × p&#8217; points! and not to mention the visualization problems while handling a quantity in 3D space. Note: In 3D, there are at least 4 entities to handle out of which three are the distances (dimensions). Also note that this type of grid is also known as mesh or lattice system and this type of simulation is also known as discretization.</p>
<p>In my case I am interested in solving the Schrodinger equation in a 2D system whose size is typically in the order of few 100 nm by few tens of nm with a grid size of about 1 nm (nm = nanometer). This will allow me to see quantum effects that happen in the scale of few nm.</p>
<p>In the end one has to remember that in any simulation you get what you put in. If you ever feel you are seeing new phenomenon then all it means is that either you did not completely understand your system dynamics/equations or there is an error in the code or data. In most cases it will be the latter <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Ubuntu 9.10, Matlab, Mathematica]]></title>
<link>http://raulmonsalve.wordpress.com/2009/11/13/ubuntu-9-10-matlab-mathematica/</link>
<pubDate>Fri, 13 Nov 2009 16:39:53 +0000</pubDate>
<dc:creator>raulmonsalve</dc:creator>
<guid>http://raulmonsalve.wordpress.com/2009/11/13/ubuntu-9-10-matlab-mathematica/</guid>
<description><![CDATA[To install those software packages it is necessary to install first the library &#8216;libstdc++5]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>To install those software packages it is necessary to install first the library &#8216;libstdc++5&#8242; manually. Since it is not available from Synaptic it is necessary to download it manually.</p>
<p>Additionally, for Matlab, after installing it we have to do</p>
<p>root# cd /usr/loocal/matlab</p>
<p>root# ./install_matlab -glnx</p>
<p>&#160;</p>
<p>and say yes to all the questions. Then, do (still in /usr/loocal/matlab ):</p>
<p>root# cd bin</p>
<p>root# gedit matlab</p>
<p>&#160;</p>
<p>and add the following line AFTER the FIRST ONE (#!/bin/sh):</p>
<p>export AWT_TOOLKIT=3DMToolkit</p>
<p>and save the file and exit. Now, you should be able to load Matlab without problems and from anywhere.</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[SAP2000 =&gt; Excel =&gt; Matlab = hamingja]]></title>
<link>http://traustihannesson.wordpress.com/2009/11/13/hamingja/</link>
<pubDate>Fri, 13 Nov 2009 14:14:24 +0000</pubDate>
<dc:creator>traustihannesson</dc:creator>
<guid>http://traustihannesson.wordpress.com/2009/11/13/hamingja/</guid>
<description><![CDATA[Áslægur kraftur í boga &nbsp; Afrakstur dagsins enn sem komið er. Matlab kóði sem tekur inn niðurstö]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div id="attachment_55" class="wp-caption aligncenter" style="width: 460px">
<div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-58" title="axial" src="http://traustihannesson.wordpress.com/files/2009/11/axial1.jpg" alt="axial" width="450" height="337" /><p class="wp-caption-text">Áslægur kraftur í boga </p></div></p>
<p>&#160;</p>
</dt>
</dl>
</div>
<p>Afrakstur dagsins enn sem komið er. <a href="http://www.mathworks.com" target="_blank">Matlab </a>kóði sem tekur inn niðurstöður úr <a href="http://www.computersandstructures.com" target="_blank">SAP2000</a> sem hafa verið exportaðar í <a href="http://www.helvitisdrasl.is" target="_blank">Excel</a> skrá. Matlab skráin tekur svo við þessum gögnum og flokkar þau á hentugan hátt svo hægt sé að dunda sér með þau. Það er gaman í Matlab þegar vel gengur. En ömurlegt þegar illa gengur.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Matlab Memory management]]></title>
<link>http://whatevericode.wordpress.com/2009/11/12/matlab-memory-management/</link>
<pubDate>Thu, 12 Nov 2009 03:35:55 +0000</pubDate>
<dc:creator>mohsenam</dc:creator>
<guid>http://whatevericode.wordpress.com/2009/11/12/matlab-memory-management/</guid>
<description><![CDATA[Oh it turns out that the matlab does not copy the data while passing it to the function if the funct]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Oh it turns out that the matlab does not copy the data while passing it to the function if the function is not changing the values.<br />
Which is big saving.<br />
http://blogs.mathworks.com/loren/2006/05/10/memory-management-for-functions-and-variables/#1</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Publishing a Matlab Application as A Web Service: The CAIMAN web service]]></title>
<link>http://iomes.wordpress.com/2009/11/09/publishing-a-matlab-application-as-a-web-service-the-caiman-web-service/</link>
<pubDate>Mon, 09 Nov 2009 16:35:16 +0000</pubDate>
<dc:creator>iomes</dc:creator>
<guid>http://iomes.wordpress.com/2009/11/09/publishing-a-matlab-application-as-a-web-service-the-caiman-web-service/</guid>
<description><![CDATA[In the previous article we reviewed the process for publishing a matlab application as a web service]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>In the previous article we reviewed the process for publishing a matlab application as a web service</p>
<p><a href="http://iomes.wordpress.com/2009/11/09/publishing-a-matlab-application-as-a-web-service-the-caiman-php-service/">http://iomes.wordpress.com/2009/11/09/publishing-a-matlab-application-as-a-web-service-the-caiman-php-service/</a></p>
<p>In this article we describe the configuration and start up of the service which will accept client requests for running matlab tasks.</p>
<p>In this case the example service for the CAIMAN project is considered. For the CAIMAN project results are emailed to the user but the web client it self may request results files from the job server, this aspect is considered in another example.</p>
<p>Files for setting up the IOME job service for the CAIMAN matlab service are contained in the folder src/examples/matlab/caiman-ws. The folder caimanDir contains the main function files used by the matlab routines. Once the caiman-ws folder has been copied into a suitable working area, the CAIMAN job service can be started almost immediately with relatively minor modification. We describe some of the required modifications here. The main files for enabling the CAIMAN service are as follows</p>
<ul>
<li>iogenericsim.sh  , this routine is called when a submit (or request ) simulation is received from a client a unique job working directory is created an this script is copied into that directory. The example provided here submits a further script to a job scheduler (sun grid engine). It could easily be modified to submit to a generic process scheduler available on windows/linx (this line has been commented out.</li>
<li>iogenericsim_sge.sh the actual script that runs invokes the matlab application will be described below</li>
<li>simfile.xml an example of the simulation input file this is received from web client and is located in the job working directory</li>
<li>caimansaasexample.m, the matlab script that styarts the actual processing job</li>
<li>cpanellogin.sh</li>
</ul>
<p>The main modifications to be made are</p>
<ul>
<li>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">qsub -sync y iogenericsim_sge.shFor the file iogenericsim.sh, If you are using sungrid engine or PBS as a batch scheduler then remove the comment from the line reading #    &#8217;qsub -sync y iogenericsim_sge.sh . Place a comment at the start of the  line   ../iogenericsim_sge.shFor iogenericsim_sge.sh, check and modify (if necessary) the line    ftp -i staff.shef.ac.uk &#60; cpanellogin.sh , this should refer to the corrrect ftp serverThe cpanellogin.sh file should be modified at the first line as follows, cd public_html/iometest/uploads, the directory should refer to the uploads directry for the IOME client</div>
</li>
<li>Using batchmode to access the ftp server store ftp server information in a file in $HOME called .netrc the .netrc filehas the following line (or lines) &#8220;machine iomewebclient.organisation.ac.uk login username passwd thepassword&#8221;. It is important to set the permissions for .netrc to  600(rw&#8212;-). Further details may be obtained at ( http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node52.html )</li>
</ul>
<p>The IOME service is then started with the following invocation</p>
<p>iogs initiome null caiman null 60000 &#62;&#38; iogs.log</p>
<p>Putting this command in script file e.g. called startserver.sh</p>
<p>#!/bin/bash</p>
<p>iogs initiome null caiman null 60000 &#62;&#38; iogs.log</p>
<p>The server is started using the command</p>
<p>./startserver.sh &#38;</p>
<p>At this point the IOME example CAIMAN service will be operational. We now provide some additional comments enabling the developer to undesrstand how to deploy their application as a web service.</p>
<p>The IOME web service works in the following way.</p>
<ul>
<li>Receives a submitsimulation request and creates a working area</li>
<li>Receives a copy of the simfile.xml that contains the job description</li>
<li>Executes the iogenericsim.sh script</li>
</ul>
<p>The iogenericsim.sh script is provided by the author of the service and this will invoke the following.</p>
<ul>
<li>Starts a local server</li>
<li>Reads the simfile.xml into the local server</li>
<li>Starts the actual job on the server the actual job will then read any data from the server (alternatively we could use string replacements to edit an input file. There is a large number of possibilities here. It is also possible to parse the simfile.xml file directly with out invoking a local IOME server</li>
</ul>
<p>Reviewing the iogenericsim_sge.sh script it should be noted that the actual job starts its own IOME server which runs as a localhost server and is invoked using the command &#8220;iogs initiome null $IOME_SIMNAME null  &#38;&#8221;.  Data is loaded onto the server using the command &#8220;iogs readsimulation simfile.xml 0 $IOME_WSPORT localhost&#8221;. We then obtain the name of the imagefile to be processed using command &#8221; IMFILE=`iogs getparam string imagefile 0 $IOME_WSPORT localhost` &#8220;, this is used in the stream editor command for editing the ftp input file. The final line of iogenericsim_sge.sh invokes the matlab job.</p>
<p>The main features of the matlab driver script are as follows</p>
<ul>
<li>Reads the port for the local IOME server</li>
<li>Sets up contact details for the local IOME server ( e.g. &#8220;elist=iome(&#8216;localhost&#8217;,res{1},0);&#8221;  )</li>
<li>Requests the parameters for the job from the local IOME server e.g. &#8220;userEmail=getparamstring(&#8216;useremail&#8217;,elist);&#8221;, &#8220; imageFile=getparamstring(&#8216;imagefile&#8217;,elist);&#8221; and &#8220;jobtype=getparamstring(&#8216;jobtype&#8217;,elist);&#8221;</li>
<li>At the end of the routine terminate the local IOME server using &#8220;exitiome(elist);&#8221;</li>
</ul>
<p>An earlier entry on generating web service applications</p>
<p><a href="http://iomes.wordpress.com/2009/09/25/publishing-an-application-as-an-iome-web-service/">http://iomes.wordpress.com/2009/09/25/publishing-an-application-as-an-iome-web-service/</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Running Variance]]></title>
<link>http://whatevericode.wordpress.com/2009/11/09/running-variance/</link>
<pubDate>Mon, 09 Nov 2009 07:19:51 +0000</pubDate>
<dc:creator>mohsenam</dc:creator>
<guid>http://whatevericode.wordpress.com/2009/11/09/running-variance/</guid>
<description><![CDATA[Just in mid of the code wanted to find the Running Variance, just as habit typed and found not so go]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Just in mid of the code wanted to find the Running Variance, just as habit typed and found not so good links.</p>
<p>1/N*[sum(i=1:N-1, Xi*Xi') + X*X'] &#8211; (1/N^2)*[ sum(i=1:(N-1), Xi) + X][ sum(i=1:(N-1), Xi) + X]&#8216;</p>
<p>Matlab code for calculating the running Variance is as follow</p>
<pre class="brush: cpp;">
%updating Mean

newMean = (newMean*(N-1) + X)/N;

sumOfSq = sumOfSq*(N-1)  + X*X';

covMat =  (1/N)*sumOfSQ - newMean*newMean'
</pre>
<p>Externally there are few links that are worth reading<br />
<a href="http://www.johndcook.com/standard_deviation.html"></a></p>
<ul>
<li><a href="http://www.johndcook.com/standard_deviation.html">Accurately computing running variance</a></li>
<li><a href="http://answers.google.com/answers/threadview/id/107855.html">From Google Answers</a>, someone gave even the posted Java Code ; Simple and clear that could be easily read by any one knowing any programming language</li>
</ul>
<p><a href="http://www.johndcook.com/standard_deviation.html"></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[MATLAB code for bubble sort]]></title>
<link>http://autarkaw.wordpress.com/2009/11/08/matlab-code-for-bubble-sort/</link>
<pubDate>Sun, 08 Nov 2009 16:06:11 +0000</pubDate>
<dc:creator>Autar Kaw</dc:creator>
<guid>http://autarkaw.wordpress.com/2009/11/08/matlab-code-for-bubble-sort/</guid>
<description><![CDATA[In the previous blog, we spelled out the bubble sort algorithm for putting an array of numbers in an]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>In the previous blog, we spelled out the bubble sort algorithm for putting an array of numbers in an ascending order.   In this post, I am posting the matlab program. It is better to <a href="http://numericalmethods.eng.usf.edu/blog/bubble_sort.m"><strong>download</strong></a> the program as single quotes in the pasted version do not translate properly when pasted into a mfile editor of MATLAB or see the <a href="http://numericalmethods.eng.usf.edu/blog/html/bubble_sort.html"><strong>html version </strong></a>for clarity and sample output.</p>
<p>%% PUTTING AN VECTOR OF NUMBERS IN AN ASCENDING ORDER?<br />
% Language : Matlab 2007a<br />
% Authors : Autar Kaw<br />
% Last Revised : November 8, 2009<br />
% Abstract: This program shows you how to put a vector<br />
% of numbers in an ascending order using the bubble sort method<br />
clc<br />
clear all<br />
disp(&#8216;This program shows the bubble sort method&#8217;)<br />
disp(&#8216;to put a vector of numbers in an &#8216;)<br />
disp(&#8216;ascending order&#8217;)<br />
disp(&#8216;Matlab 2007a&#8217;)<br />
disp(&#8216;Authors : Autar Kaw&#8217;)<br />
disp(&#8216;Last Revised : November 8, 2009&#8242;)<br />
disp(&#8216;http://numericalmethods.eng.usf.edu&#8217;)<br />
disp(&#8216;  &#8216;)<br />
%% INPUTS<br />
% The vector of numbers<br />
disp (&#8216;INPUTS&#8217;)<br />
disp(&#8216;Input the vector of numbers&#8217;)<br />
A=[18  7  6  15  4  13];<br />
disp(A)<br />
%% SOLUTION<br />
% Number of entries, n<br />
n=length(A);<br />
% making (n-1) passes<br />
for j=1:1:n-1<br />
    % comparing each number with the next and swapping<br />
    for i=1:1:n-1<br />
    if A(i)&#62;A(i+1);<br />
        % temp is a variable where the numbers are kept<br />
        % temporarily for the switch<br />
        temp=A(i);<br />
        A(i)=A(i+1);<br />
        A(i+1)=temp;<br />
    end<br />
    end<br />
end</p>
<p>%% OUTPUT<br />
disp(&#8216;  &#8216;)<br />
disp (&#8216;OUTPUT&#8217;)<br />
disp (&#8216;The ascending matrix is&#8217;)<br />
disp(A)</p>
<p>_______________________________________________________</p>
<p>This post is brought to you by Holistic Numerical Methods: Numerical Methods for the STEM undergraduate at <a href="http://numericalmethods.eng.usf.edu/">http://numericalmethods.eng.usf.edu</a>, the textbook on <a href="http://autarkaw.com/books/numericalmethods/index.html">Numerical Methods with Applications</a> available from the <a href="http://stores.lulu.com/kawautar">lulu storefront</a>, and the YouTube video lectures available at <a href="http://numericalmethods.eng.usf.edu/videos">http://numericalmethods.eng.usf.edu/videos</a> and <a href="http://www.youtube.com/numericalmethodsguy">http://www.youtube.com/numericalmethodsguy</a></p>
<p>Subscribe to the blog via a <a href="http://feeds.feedburner.com/wordpress/EDie">reader</a> or <a href="http://www.feedburner.com/fb/a/emailverifySubmit?feedId=2178495&#38;loc=en_US">email</a> to stay updated with this blog. Let the information follow you.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Formation of a quantum wire - Parabolic potential well]]></title>
<link>http://arunwaves.wordpress.com/2009/11/08/formation-of-a-quantum-wire-parabolic-potential-well/</link>
<pubDate>Sun, 08 Nov 2009 12:33:27 +0000</pubDate>
<dc:creator>Arun</dc:creator>
<guid>http://arunwaves.wordpress.com/2009/11/08/formation-of-a-quantum-wire-parabolic-potential-well/</guid>
<description><![CDATA[This post deals with a Matlab simulation showing the formation of a quantum wire, i.e. a parabolic p]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This post deals with a Matlab simulation showing the formation of a quantum wire, i.e. a parabolic potential well.</p>
<p>Such potential profiles can be easily realized by negatively biasing 2 metallic plates (also known as gates) separated by a short distance as shown in the figure below. Split-gate technique is one method used to form (fabricate) such structures.</p>
<div id="attachment_41" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-41" title="Split gates" src="http://arunwaves.wordpress.com/files/2009/11/split-gates1.png?w=300" alt="Split gates" width="300" height="215" /><p class="wp-caption-text">2 plates (on top) with negative charge</p></div>
<p>In the following movie, the potential starts with a flat profile (at zero/ground potential) when there is no charge on the plates. As the negative potential is increased the potential under the plates rises and the fringing field (field that is not directly under the plates) pulls the neighboring potential along with it &#8211; almost like lifting the ends of a bed sheet. The title calls it the &#8216;Parabolic potential well&#8217; since the transverse cross section (section along the width) shows a parabolic shape for the potential along the width of the wire.</p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/fsTYPRrWXGY&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/fsTYPRrWXGY&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
<p>The Length and Width axis of the wire are in units of nano-meter (1 nm = 1*10^-9 m, i.e. 1 billionth of a meter). Nanometer is the typical unit for length used for measuring dimensions in the nano world. The Potential axis is in arbitrary units of electric potential. All the numeric values are chosen to represent typical values seen in actual experiments.</p>
<p>Once the wire is formed in the simulation, it is rotated (in the above video) to give a clear view of its shape (remember the edges are electric potential and not physical walls/matter). The last segment of the video shows the top view of the wire which will be a useful view to get used to when we will pass electrons through the wire. The color bar on the right hand side gives the value of the potential at any point in the wire based on the color gradient; maximum is 25 (red) and minimum is 0 (blue).</p>
<p>Feel free to post any questions&#8230;&#8230;&#8230;&#8230;&#8230; thanks <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
