<?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://wordpress.com/tag/matlab/</link>
	<description>Feed of posts on WordPress.com tagged "matlab"</description>
	<pubDate>Fri, 18 Jul 2008 21:40:24 +0000</pubDate>

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

<item>
<title><![CDATA[IT QA Engineer]]></title>
<link>http://spillerlaszlo.wordpress.com/?p=247</link>
<pubDate>Fri, 18 Jul 2008 12:23:10 +0000</pubDate>
<dc:creator>Spiller László</dc:creator>
<guid>http://spillerlaszlo.wordpress.com/?p=247</guid>
<description><![CDATA[About this role:

This role is for a QA Engineer for our Budapest software engineering and quality a]]></description>
<content:encoded><![CDATA[<p><strong>About this role:</strong></p>
<ul>
<li>This role is for a QA Engineer for our Budapest software engineering and quality assurance team. This candidate will be responsible for test planning, development and execution as part of our next-generation equity portfolio analytics product-development team.</li>
<li>This role would suit a person who has experience in using HP/Mercury QTP, Test Director, VB and MATLAB to test highly quantitative applications products, and who has a broad appreciation of the institutional investment domain. The person will be expected to work closely with our software engineers in Budapest and with our product managers and application developers in multiple global locations. We are seeking someone with an inquisitive nature, attention to detail,  a keen interest in application quality, and experience with test-driven development practices.</li>
</ul>
<p><strong>Requirements:</strong></p>
<ul>
<li>Bachelors Degree in Computer Science or related discipline. Masters Degree preferred.</li>
<li>Quality Assurance engineering experience on the Windows XP/Vista platform.</li>
<li>Experience with test-case development, test automation, HP/Mercury QTP.</li>
<li>Excellent communications skills and English fluency</li>
<li>Proven ability to work independently and within a team environment.</li>
</ul>
<p><a href="laszlo_spiller@kellyservices.hu">laszlo_spiller@kellyservices.hu</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[How to check Matlab License]]></title>
<link>http://techlogbook.wordpress.com/?p=70</link>
<pubDate>Wed, 16 Jul 2008 05:33:04 +0000</pubDate>
<dc:creator>kurniawano</dc:creator>
<guid>http://techlogbook.wordpress.com/?p=70</guid>
<description><![CDATA[This is the command to check Matlab license in my server:
% cd /apps/matlab/r2006b/etc
The folder mi]]></description>
<content:encoded><![CDATA[<p>This is the command to check Matlab license in my server:</p>
<p><code>% cd /apps/matlab/r2006b/etc</code><br />
The folder might be different from yours. But you need to go to the /etc folder and then run lmstat -a to show all info.<br />
<code>% ./lmstat -a</code></p>
<p>Type ./lmstat --help if you want to use other options</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[NgituNg InteGral?? Pake MatLab aja..]]></title>
<link>http://orinpln.wordpress.com/?p=20</link>
<pubDate>Tue, 15 Jul 2008 22:28:09 +0000</pubDate>
<dc:creator>orinpln</dc:creator>
<guid>http://orinpln.wordpress.com/?p=20</guid>
<description><![CDATA[Tenang-tenang jangan langsung kabur gara-gara baca judul. He..he.. saya tahu kalo baca “integral]]></description>
<content:encoded><![CDATA[<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;">Tenang-tenang jangan langsung kabur gara-gara baca judul. He..he.. saya tahu kalo baca “integral”, di benak temen-temen pasti hitungan.eitt… jangan merinding duluan, saya nawarin nyari nilai integral tanpa pusing-pusing ngitung. Mau tahu caranya???</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;">Gampang bangeeeee…ttzz!</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;">Pertama cari software yang namanya “MATLAB”, mudah loh nyarinya, bisa nyari di tempat software, nyari ke temen dekat anda atau berkunjung ke </span><a href="http://www.mathworks.com/"><span style="font-size:small;">www.mathworks.com</span></a><span style="font-size:small;"> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;">Langkah kedua, install tuh software jangan di kukut ( soalnya ga bakalan beranak ato jadi duit ), kalo udah di install jangan di diemin juga, so…. Cepet bertindak. Caranya klik star &#62;&#62; all program &#62;&#62; matlab.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;">Langkah ke tiga lihat soal integral yang ada baik-baik, misalnya soal integralnya seperti ini :</span></span><span style="font-family:&#34;"><span style="font-size:small;"><span>            [gallery]</span></span></span><span style="font-family:&#34;"><span style="font-size:small;">(“…&#60;:’+)(&#38;%$#@..!!”)</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;">Tenang sie, ngak usah panic, kan ada matlab !!</span></span></p>
<p class="MsoNormal" style="text-align:center;margin:0 0 10pt;" align="center"> </p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;">Langkah ke empat :</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;">Di command window pada matlab ketik :’</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;"><span>            </span>&#62;&#62; y = inline (' x.^6+x.^5-x.^3+x.^2-x') terus enter, naaah hasilnya :</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt 0.5in;"><span style="font-family:&#34;"><span style="font-size:small;">y =</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;"><span>  </span><span>          </span><span>   </span>Inline function:</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;"><span>  </span><span>          </span><span>   </span>y(x) = x.^6+x.^5-x.^3+x.^2-x</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;">perintah inline di matlab yaitu untuk menampung fungsi integral, sedangkan untuk menghitung nilai integralnya sendiri matlab menyediakan fungsi <strong>quad</strong>. Ok!!! Setelah integralnya di simpan di variable y, langkah selanjutnya ketikan perintah ini:</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;"><span>            </span>&#62;&#62; hasil = quad(y,-1,2)</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;"><span>              </span>hasil =</span></span></p>
<p class="MsoNormal" style="text-indent:0.5in;text-align:justify;margin:0 0 10pt 0.5in;"><span style="font-family:&#34;"><span style="font-size:small;"><span>    </span>26.6786</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;">(y,-1,2) artinya y = fungsi integral yang diroses, -1 = batas bawah dari integral, dan 2 = batas atas dari integral.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0 0 10pt;"><span style="font-family:&#34;"><span style="font-size:small;">Waooww.. selesai sudaaah…he..he…</span></span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Kenapa Mulut "Dia" Berbuih?]]></title>
<link>http://amircesc4.wordpress.com/?p=212</link>
<pubDate>Tue, 15 Jul 2008 16:21:45 +0000</pubDate>
<dc:creator>copyninja</dc:creator>
<guid>http://amircesc4.wordpress.com/?p=212</guid>
<description><![CDATA[2 days to go&#8230;
aku masih lagi dalam keadaan malas. malas nak pergi belajar. malas nak daftar se]]></description>
<content:encoded><![CDATA[<p>2 days to go...</p>
<p>aku masih lagi dalam keadaan malas. malas nak pergi belajar. malas nak daftar semester baru di UTP. aku selesa hidup mcm 2 bulan lepas. tidur, makan, bangun, main dan tidur lagi. walaupun tidak berduit, tapi hati aku tenang. hidup kat UTP ni sengsara, otak kena jalan 24/7. tambah-tambah aku dah semester terakhir di UTP.</p>
<p><!--more--></p>
<p>lihat saja kotak-kotak itu, malas nak kemas. malas nak packing...</p>
<p>kalau boleh nak duduk rileks-rileks je...</p>
<p>dah la tu, semester ni aku kena belajar MatLab. apa kejadah bendanya pun aku tatau. tapi demi fyp aku, aku terpaksa memaksa diri aku untuk beli software <span style="text-decoration:line-through;">original</span> pirated (ubah gaya hidup). yang tu je aku mampu. aku download ebooks kat laman web untuk mempelajari dengan lebih mendalam tentang MatLab (Read : Liar!) dan seterusnya berjaya men-graduate-kan diri. hehe...</p>
[caption id="" align="aligncenter" width="410" caption="Sangat Kemas!"]<a href="http://i334.photobucket.com/albums/m434/amircesc4/IMG_0095.jpg"><img src="http://i334.photobucket.com/albums/m434/amircesc4/IMG_0095.jpg" alt="Sangat Kemas!" width="410" height="307" /></a>[/caption]
[caption id="" align="aligncenter" width="403" caption="MATLAB...=("]<a href="http://i334.photobucket.com/albums/m434/amircesc4/IMG_0094.jpg"><img src="http://i334.photobucket.com/albums/m434/amircesc4/IMG_0094.jpg" alt="MATLAB...=(" width="403" height="302" /></a>[/caption]
<p>tapi-kan, aku ada jugak tengok DEBAT antara Anwar dgn Shabery tadi. dah sah-sah la karisma dan kepimpinan Anwar yang mengatasi Shabery. tapi ada gak 1-2 soalan yang Anwar tak jawab. biasalah, masa terhad, ataupun memang Anwar takleh jawab. dan ada betulnya kata Shabery tadi. Anwar dulu pun orang B*b* Negara jugak (Read : BN), dia pun pernah kutuk Nik Aziz gak, ada gak masalah dia dgn empangan Pergau dulu. Tapi, sekarang dia dah berubah, so hopefully, dia akan terus memacu Malaysia ke arah yang lebih baik.</p>
<p>aku tatau lah kenapa mamat Shabery tu. tak reti-reti, ada 2 benda yang dapat aku simpulkan tentang kebodohan mamat ni:</p>
<ol>
<li>Si Anwar bukan salahkan PETRONAS atau nak guna Dana PETRONAS. si Anwar tu ckp, pengurusan DANA NEGARA yang tidak cekap dan Pemimpin-pemimpin B*b* Negara yang patut dipersalahkan, lemah!</li>
<li>Jangan serang peribadi, jangan serang peribadi! walaupun aku ada jugak bersetuju sikit-sikit. Ia mengingatkan kita bagaimana Anwar serang PAS masa dia jadi tali barut B*b* Negara dulu-dulu.</li>
</ol>
[caption id="" align="aligncenter" width="432" caption="yearghhhh!~"]<a href="http://i334.photobucket.com/albums/m434/amircesc4/010852364.jpg"><img src="http://i334.photobucket.com/albums/m434/amircesc4/010852364.jpg" alt="yearghhhh!~" width="432" height="297" /></a>[/caption]
<p>tapi kan, kenapa mulut Shabery tu berbuih-buih. kat bahagian tepi mulut dia. GELI AKU TENGOK! eeeee!</p>
<p>oh, mesej baru aku terima :</p>
<p>JAWATAN KOSONG : MENTERI PENERANGAN MALAYSIA</p>
<p>denggg!~</p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/MEoynL_APGM'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/MEoynL_APGM&rel=0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object></span></p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/S4gEj2IMHys'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/S4gEj2IMHys&rel=0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object></span></p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/j3oYt-2Nf6c'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/j3oYt-2Nf6c&rel=0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object></span></p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/jSCzidWoZLI'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/jSCzidWoZLI&rel=0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object></span></p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/ow0ZpLwjwao'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/ow0ZpLwjwao&rel=0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object></span></p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/svDriH1s4sM'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/svDriH1s4sM&rel=0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object></span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Numerical Computing with MATLAB]]></title>
<link>http://tamilgo.wordpress.com/?p=99</link>
<pubDate>Sun, 13 Jul 2008 01:54:15 +0000</pubDate>
<dc:creator>tamilgo</dc:creator>
<guid>http://tamilgo.wordpress.com/?p=99</guid>
<description><![CDATA[ 

Download Link:
Numerical_Computing_with_MATLAB_-_Cleve_Moler.pdf
]]></description>
<content:encoded><![CDATA[<p style="text-align:center;"><span class="postbody"> <img class="aligncenter" src="http://www.jettmedia.com/images/v4x02yx53qxyexiujy4b.gif" border="0" alt="" /></span></p>
<h1><!--more--></h1>
<h2 style="text-align:center;"><span><strong><span style="color:#3366ff;"><strong>Download Link:</strong></span></strong></span></h2>
<p style="text-align:center;"><a href="http://rapidshare.com/files/129008868/Numerical_Computing_with_MATLAB_-_Cleve_Moler.pdf" target="_blank">Numerical_Computing_with_MATLAB_-_Cleve_Moler.pdf</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Applied Numerical Methods Using MATLAB]]></title>
<link>http://tamilgo.wordpress.com/?p=100</link>
<pubDate>Sun, 13 Jul 2008 01:49:40 +0000</pubDate>
<dc:creator>tamilgo</dc:creator>
<guid>http://tamilgo.wordpress.com/?p=100</guid>
<description><![CDATA[


Download Link:
Applied_Numerical_Methods_Using_MATLAB_-_Yang_Cao_Chung_and_Morris.pdf
]]></description>
<content:encoded><![CDATA[<p style="text-align:center;"><span class="postbody"><br />
<img class="aligncenter" style="border:0 none;" src="http://www.jettmedia.com/images/3hbrdoxo6mgu6vcsgyni.jpg" border="0" alt="" width="496" height="794" /></span></p>
<h1><!--more--></h1>
<h2 style="text-align:center;"><span><strong><span style="color:#3366ff;"><strong>Download Link:</strong></span></strong></span></h2>
<p style="text-align:center;"><a href="http://rapidshare.com/files/129008528/Applied_Numerical_Methods_Using_MATLAB_-_Yang_Cao_Chung_and_Morris.pdf" target="_blank">Applied_Numerical_Methods_Using_MATLAB_-_Yang_Cao_Chung_and_Morris.pdf</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[iMac setup D*O*N*E!]]></title>
<link>http://mycenaean.wordpress.com/?p=93</link>
<pubDate>Fri, 11 Jul 2008 22:17:55 +0000</pubDate>
<dc:creator>mycenaean</dc:creator>
<guid>http://mycenaean.wordpress.com/?p=93</guid>
<description><![CDATA[I&#8217;ve been trying to downgrade Leopard&#8217;s X11 to Tiger&#8217;s, under the introduction of ]]></description>
<content:encoded><![CDATA[<p>I've been trying to downgrade Leopard's X11 to Tiger's, under the introduction of Ben Byer and Tim Baur as mentioned in the last blog post, but failed. It gave me an quartz--wm controlled X11, still no full screen mode available. I tried to modify .xinitrc and org.x.X11.plist, also the preference parameterization, nothing better. I just gave up and forced myself to get used to it. One lightly good thing is that I could use Leopard's Space function and associate X11 to an individual space. That's all of it.</p>
<p>Once I faced a license problem with MATLAB, which cost me much more time than it should be to figure it out. There's no license manager, say, lm/ folder installed, therefore I've noway to lmdown or lmstart. I thought there's some files missed during installation or the installation isn't completely successful. I uninstalled MATLAB, reinstalled it, but nothing happened. Today, I just asked someone whether the license has expired since it was passed to me. No surprise or much surprise, the answer is yes. So I'm now having the new license on and it starts working finely. It's just that this time my MATLAB doesn't need lm command anymore...</p>
<p>Whatever, my iMac is setup now, no matter how well the X11 part is functioning and that's the whole story of couple days' struggling. I hate it!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[quelques codes pour matlab et courbes 2D 3D image]]></title>
<link>http://stef2cnrs.wordpress.com/?p=173</link>
<pubDate>Fri, 11 Jul 2008 16:09:20 +0000</pubDate>
<dc:creator>stef2cnrs</dc:creator>
<guid>http://stef2cnrs.wordpress.com/?p=173</guid>
<description><![CDATA[xes abscisses d&#8217;un graphique ?
Les objets de type Axes ne possèdent pas de propriété permet]]></description>
<content:encoded><![CDATA[<p><a class="question" href="http://matlab.developpez.com/faq/?page=graphiques#graphiques_xlabel_rotate">xes abscisses d'un graphique ?</a></p>
<div class="paragraph">Les objets de type Axes ne possèdent pas de propriété permettant d'incliner les labels des repères de l'axe des abscisses d'un graphique.</p>
<p>Il existe néanmoins plusieurs contributions disponibles sur le File EXchange qui répondent à ce besoin :</p></div>
<ul style="list-style-type:disc;">
<li><a class="lienArticle" href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3486&#38;objectType=file">XTICKLABEL_ROTATE</a>, par Brian Katz</li>
<li><a class="lienArticle" href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3150&#38;objectType=file">XTICKLABEL_ROTATE90</a>, par Denis Gilbert</li>
<li><a class="lienArticle" href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=16804&#38;objectType=file">Rotate XTick Labels for multi-axes</a>, par Peter Platzer</li>
</ul>
<p>---------------</p>
<p><a class="question" href="http://matlab.developpez.com/faq/?page=graphiques#graphiques_label_points">Comment mettre une étiquette à mes points ?</a></p>
<pre><code class="contenuCode">x=rand(3,1);
y=rand(3,1);

figure
plot(x,y,</code><code class="matlab_literal1">'</code><code class="matlab_literal1">r+</code><code class="matlab_literal1">'</code>);

str=num2str([1:numel(x)].<code class="matlab_literal1">'</code><code class="matlab_literal1">,</code><code class="matlab_literal1">'</code><code class="matlab_comment1">%</code><code class="matlab_comment1">1d');</code><code class="matlab_comment1"> </code><code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">ATTENTION</code><code class="matlab_comment1"> </code><code class="matlab_comment1">le</code><code class="matlab_comment1"> </code><code class="matlab_comment1">premier</code><code class="matlab_comment1"> </code><code class="matlab_comment1">argument</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">NUM2STR</code><code class="matlab_comment1"> </code><code class="matlab_comment1">doit</code><code class="matlab_comment1"> </code><code class="matlab_comment1">être</code><code class="matlab_comment1"> </code><code class="matlab_comment1">un</code><code class="matlab_comment1"> </code><code class="matlab_comment1">vecteur</code><code class="matlab_comment1"> </code><code class="matlab_comment1">colonne</code>
text(x+0.01,y+0.01,str) <code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Le</code><code class="matlab_comment1"> </code><code class="matlab_comment1">décalage</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">0.01</code><code class="matlab_comment1"> </code><code class="matlab_comment1">est</code><code class="matlab_comment1"> </code><code class="matlab_comment1">arbitraire</code><code class="matlab_comment1"> </code><code class="matlab_comment1">ici.
------------
</code><a class="question" href="http://matlab.developpez.com/faq/?page=graphiques#graphiques_line_color_var">omment tracer une ligne dont la couleur varie ?</a>
<code class="contenuCode">x = rand(3,1);
y = rand(3,1);

figure
subplot(2,1,1)
plot(x,y)

subplot(2,1,2)

patch(</code><code class="matlab_literal1">'</code><code class="matlab_literal1">xdata</code><code class="matlab_literal1">'</code>,[x;x(<code class="matlab_keyword1">end</code>:-1:1)],<code class="matlab_keyword2">...</code>
      <code class="matlab_literal1">'</code><code class="matlab_literal1">ydata</code><code class="matlab_literal1">'</code>,[y;y(<code class="matlab_keyword1">end</code>:-1:1)],<code class="matlab_keyword2">...</code>
      <code class="matlab_literal1">'</code><code class="matlab_literal1">facecolor</code><code class="matlab_literal1">'</code>,<code class="matlab_literal1">'</code><code class="matlab_literal1">interp</code><code class="matlab_literal1">'</code>, <code class="matlab_keyword2">...</code>
      <code class="matlab_literal1">'</code><code class="matlab_literal1">edgecolor</code><code class="matlab_literal1">'</code>,<code class="matlab_literal1">'</code><code class="matlab_literal1">interp</code><code class="matlab_literal1">'</code>,<code class="matlab_keyword2">...</code>
      <code class="matlab_literal1">'</code><code class="matlab_literal1">facevertexcdata</code><code class="matlab_literal1">'</code>,[y;y(<code class="matlab_keyword1">end</code>:-1:1)])
-------------
<a class="question" href="http://matlab.developpez.com/faq/?page=graphiques#graphiques_anim_plot">omment animer le tracé d'une courbe ?</a>
<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Génération</code><code class="matlab_comment1"> </code><code class="matlab_comment1">des</code><code class="matlab_comment1"> </code><code class="matlab_comment1">données</code>
th=0:0.02:10*pi;
y=sin(th);

<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Création</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">l'objet</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Figure</code><code class="matlab_comment1"> </code><code class="matlab_comment1">contenant</code><code class="matlab_comment1"> </code><code class="matlab_comment1">les</code><code class="matlab_comment1"> </code><code class="matlab_comment1">tracés</code>
fig=figure;

<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Première</code><code class="matlab_comment1"> </code><code class="matlab_comment1">objet</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Axes</code><code class="matlab_comment1"> </code><code class="matlab_comment1">où</code><code class="matlab_comment1"> </code><code class="matlab_comment1">est</code><code class="matlab_comment1"> </code><code class="matlab_comment1">tracée</code><code class="matlab_comment1"> </code><code class="matlab_comment1">la</code><code class="matlab_comment1"> </code><code class="matlab_comment1">courbe</code><code class="matlab_comment1"> </code><code class="matlab_comment1">directe</code>
subplot(2,1,1)
<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Tracé</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">la</code><code class="matlab_comment1"> </code><code class="matlab_comment1">courbe</code>
plot(th,y,<code class="matlab_literal1">'</code><code class="matlab_literal1">r-</code><code class="matlab_literal1">'</code>)
<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Ajustement</code><code class="matlab_comment1"> </code><code class="matlab_comment1">des</code><code class="matlab_comment1"> </code><code class="matlab_comment1">limites</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">l'objet</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Axes</code>
xlim([min(th) max(th)])
ylim([min(y) max(y)])

<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Second</code><code class="matlab_comment1"> </code><code class="matlab_comment1">objet</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Axes</code><code class="matlab_comment1"> </code><code class="matlab_comment1">où</code><code class="matlab_comment1"> </code><code class="matlab_comment1">est</code><code class="matlab_comment1"> </code><code class="matlab_comment1">tracée</code><code class="matlab_comment1"> </code><code class="matlab_comment1">la</code><code class="matlab_comment1"> </code><code class="matlab_comment1">courbe</code><code class="matlab_comment1"> </code><code class="matlab_comment1">animée</code>
subplot(2,1,2)

<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Modification</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">la</code><code class="matlab_comment1"> </code><code class="matlab_comment1">propriété</code><code class="matlab_comment1"> </code><code class="matlab_comment1">DoubleBuffer</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">l'objet</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Figure</code><code class="matlab_comment1"> </code><code class="matlab_comment1">pour</code>
<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">éviter</code><code class="matlab_comment1"> </code><code class="matlab_comment1">le</code><code class="matlab_comment1"> </code><code class="matlab_comment1">clignotement</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">la</code><code class="matlab_comment1"> </code><code class="matlab_comment1">fenêtre</code>
<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">NECESSAIRE</code><code class="matlab_comment1"> </code><code class="matlab_comment1">POUR</code><code class="matlab_comment1"> </code><code class="matlab_comment1">TOUTE</code><code class="matlab_comment1"> </code><code class="matlab_comment1">ANIMATION</code>
set(fig,<code class="matlab_literal1">'</code><code class="matlab_literal1">doublebuffer</code><code class="matlab_literal1">'</code>,<code class="matlab_literal1">'</code><code class="matlab_literal1">on</code><code class="matlab_literal1">'</code>)

<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Tracé</code><code class="matlab_comment1"> </code><code class="matlab_comment1">du</code><code class="matlab_comment1"> </code><code class="matlab_comment1">premier</code><code class="matlab_comment1"> </code><code class="matlab_comment1">point</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">la</code><code class="matlab_comment1"> </code><code class="matlab_comment1">courbe</code>
<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">et</code><code class="matlab_comment1"> </code><code class="matlab_comment1">récupération</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">l'identifiant</code><code class="matlab_comment1"> </code><code class="matlab_comment1">(handle)</code><code class="matlab_comment1"> </code><code class="matlab_comment1">p</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">l'objet</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Line</code><code class="matlab_comment1"> </code><code class="matlab_comment1">crée.</code>
p=plot(th(1),y(1),<code class="matlab_literal1">'</code><code class="matlab_literal1">r-</code><code class="matlab_literal1">'</code>);
<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Ajustement</code><code class="matlab_comment1"> </code><code class="matlab_comment1">des</code><code class="matlab_comment1"> </code><code class="matlab_comment1">limites</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">l'objet</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Axes</code>
xlim([min(th) max(th)])
ylim([min(y) max(y)])

<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">On</code><code class="matlab_comment1"> </code><code class="matlab_comment1">boucle</code><code class="matlab_comment1"> </code><code class="matlab_comment1">sur</code><code class="matlab_comment1"> </code><code class="matlab_comment1">le</code><code class="matlab_comment1"> </code><code class="matlab_comment1">nombre</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">points</code><code class="matlab_comment1"> </code><code class="matlab_comment1">à</code><code class="matlab_comment1"> </code><code class="matlab_comment1">tracer.</code><code class="matlab_comment1"> </code>
<code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">On</code><code class="matlab_comment1"> </code><code class="matlab_comment1">démarre</code><code class="matlab_comment1"> </code><code class="matlab_comment1">à</code><code class="matlab_comment1"> </code><code class="matlab_comment1">2</code><code class="matlab_comment1"> </code><code class="matlab_comment1">puisque</code><code class="matlab_comment1"> </code><code class="matlab_comment1">le</code><code class="matlab_comment1"> </code><code class="matlab_comment1">premier</code><code class="matlab_comment1"> </code><code class="matlab_comment1">est</code><code class="matlab_comment1"> </code><code class="matlab_comment1">déjà</code><code class="matlab_comment1"> </code><code class="matlab_comment1">tracé</code>
<code class="matlab_keyword1">for</code> n=2:numel(th)

  <code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Ajout</code><code class="matlab_comment1"> </code><code class="matlab_comment1">des</code><code class="matlab_comment1"> </code><code class="matlab_comment1">points</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">la</code><code class="matlab_comment1"> </code><code class="matlab_comment1">courbe</code><code class="matlab_comment1"> </code><code class="matlab_comment1">au</code><code class="matlab_comment1"> </code><code class="matlab_comment1">fur</code><code class="matlab_comment1"> </code><code class="matlab_comment1">et</code><code class="matlab_comment1"> </code><code class="matlab_comment1">à</code><code class="matlab_comment1"> </code><code class="matlab_comment1">mesure</code>
  <code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">en</code><code class="matlab_comment1"> </code><code class="matlab_comment1">utilisant</code><code class="matlab_comment1"> </code><code class="matlab_comment1">la</code><code class="matlab_comment1"> </code><code class="matlab_comment1">combinaison</code><code class="matlab_comment1"> </code><code class="matlab_comment1">SET</code><code class="matlab_comment1"> </code><code class="matlab_comment1">+</code><code class="matlab_comment1"> </code><code class="matlab_comment1">identifiant</code><code class="matlab_comment1"> </code><code class="matlab_comment1">(handle)</code>
  set(p,<code class="matlab_literal1">'</code><code class="matlab_literal1">xdata</code><code class="matlab_literal1">'</code>,th(1:n),<code class="matlab_literal1">'</code><code class="matlab_literal1">ydata</code><code class="matlab_literal1">'</code>,y(1:n));
  <code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Forçage</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">l'affichage</code><code class="matlab_comment1"> </code><code class="matlab_comment1">du</code><code class="matlab_comment1"> </code><code class="matlab_comment1">tracé</code>
  drawnow

<code class="matlab_keyword1">end</code>
<code class="matlab_comment1">-------------
</code><a class="question" href="http://matlab.developpez.com/faq/?page=graphiques#graphiques_get_points_coord">Comment récupérer les valeurs de données tracées ?</a>
Dans tous les cas, il faut utiliser la fonction FINDOBJ pour récupérer l'identifiant de l'objet dont on veut
		récupérer les données.

<strong>Pour les objets de type Line (nuage de points ou lignes), Surface ou Mesh, on récupère les propriétés XDATA, YDATA et ZDATA</strong>

Pour les objets de type Image, on récupère la propriété CDATA

Pour les objets de type Patch, on récupère, soit les propriétés XDATA, YDATA et ZDATA, soit les propriétés VERTICES et FACES

<code class="contenuCode">
[X,Y,Z] = peaks(20)
surf(X,Y,Z);

h=findobj(</code><code class="matlab_literal1">'</code><code class="matlab_literal1">type</code><code class="matlab_literal1">'</code>,<code class="matlab_literal1">'</code><code class="matlab_literal1">surf</code><code class="matlab_literal1">'</code>);
xx=get(h,<code class="matlab_literal1">'</code><code class="matlab_literal1">xdata</code><code class="matlab_literal1">'</code>)
yy=get(h,<code class="matlab_literal1">'</code><code class="matlab_literal1">ydata</code><code class="matlab_literal1">'</code>)

zz=get(h,<code class="matlab_literal1">'</code><code class="matlab_literal1">zdata</code><code class="matlab_literal1">'</code>)
--------------------
<a class="question" href="http://matlab.developpez.com/faq/?page=images#images_redimensionner">Comment redimensionner une image ?</a>
<strong>La première solution</strong> consiste à utiliser la fonction <a class="lienArticle" href="http://www.mathworks.com/access/helpdesk/help/toolbox/images/imresize.html">IMRESIZE</a> contenue dans l'Image Processing Toolbox.

<strong>La deuxième solution</strong> utilise l'indexage des matrices. Puisqu'une
image est une matrice 2D ou 3D (RGB), il est très simple de diminuer la
taille d'une image en jouant sur l'indexage. Par exemple, pour diminuer
par deux la taille d'une image 2D, il suffit de ne conserver qu'un pixel sur deux

<code class="contenuCode">
img=rand(150,200); </code><code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Une</code><code class="matlab_comment1"> </code><code class="matlab_comment1">image</code><code class="matlab_comment1"> </code><code class="matlab_comment1">2D</code><code class="matlab_comment1"> </code><code class="matlab_comment1">aléatoire</code>
size(img)

ans =

   150   200

img=img(1:2:<code class="matlab_keyword1">end</code>,1:2:<code class="matlab_keyword1">end</code>);

size(img)

ans =

    75   100

--------Pour une image 3D (RGB), le code devient :
<code class="contenuCode">img=rand(150,200,3); </code><code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Une</code><code class="matlab_comment1"> </code><code class="matlab_comment1">image</code><code class="matlab_comment1"> </code><code class="matlab_comment1">3D</code><code class="matlab_comment1"> </code><code class="matlab_comment1">(RGB)</code><code class="matlab_comment1"> </code><code class="matlab_comment1">aléatoire</code>
size(img)

ans =

   150   200     3

img=img(1:2:<code class="matlab_keyword1">end</code>,1:2:<code class="matlab_keyword1">end</code>,:);

size(img)

ans =

    75   100     3
-----
On remarque que cette solution utilisant l'indexage se limite à des facteurs de réductions/agrandissement entier.

<strong>La troisième solution</strong> utilise les fonctions d'interpolation.

Soit INTERP2 pour diminuer par deux la taille d'une image 2D :
<code class="contenuCode">img = rand(150,200); </code><code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Une</code><code class="matlab_comment1"> </code><code class="matlab_comment1">image</code><code class="matlab_comment1"> </code><code class="matlab_comment1">2D</code><code class="matlab_comment1"> </code><code class="matlab_comment1">aléatoire</code>
size(img)

ans =

   150   200

[c,r ] = size(img); <code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Récupération</code><code class="matlab_comment1"> </code><code class="matlab_comment1">des</code><code class="matlab_comment1"> </code><code class="matlab_comment1">2</code><code class="matlab_comment1"> </code><code class="matlab_comment1">dimensions</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">l'image</code>

[ci,ri] = meshgrid(1:2:r,1:2:c); <code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Génération</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">la</code><code class="matlab_comment1"> </code><code class="matlab_comment1">grille</code><code class="matlab_comment1"> </code><code class="matlab_comment1">d'interpolation</code>

img = interp2(img,ci,ri); <code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Interpolation</code><code class="matlab_comment1"> </code><code class="matlab_comment1">des</code><code class="matlab_comment1"> </code><code class="matlab_comment1">valeurs</code><code class="matlab_comment1"> </code><code class="matlab_comment1">des</code><code class="matlab_comment1"> </code><code class="matlab_comment1">pixels</code>

size(img)

ans =

    75   100

Soit INTERP3 pour diminuer par deux la taille d'une image 3D :
<code class="contenuCode">img = rand(150,200,3); </code><code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Une</code><code class="matlab_comment1"> </code><code class="matlab_comment1">image</code><code class="matlab_comment1"> </code><code class="matlab_comment1">3D</code><code class="matlab_comment1"> </code><code class="matlab_comment1">(RGB)</code><code class="matlab_comment1"> </code><code class="matlab_comment1">aléatoire</code>
 size(img)

ans =

   150   200     3

[c,r,p] = size(img); <code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Récupération</code><code class="matlab_comment1"> </code><code class="matlab_comment1">des</code><code class="matlab_comment1"> </code><code class="matlab_comment1">3</code><code class="matlab_comment1"> </code><code class="matlab_comment1">dimensions</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">l'image</code>

[ci,ri,pi] = meshgrid(1:2:r,1:2:c,1:p); <code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Génération</code><code class="matlab_comment1"> </code><code class="matlab_comment1">de</code><code class="matlab_comment1"> </code><code class="matlab_comment1">la</code><code class="matlab_comment1"> </code><code class="matlab_comment1">grille</code><code class="matlab_comment1"> </code><code class="matlab_comment1">d'interpolation</code>

img = interp3(img,ci,ri,pi); <code class="matlab_comment1">%</code><code class="matlab_comment1"> </code><code class="matlab_comment1">Interpolation</code><code class="matlab_comment1"> </code><code class="matlab_comment1">des</code><code class="matlab_comment1"> </code><code class="matlab_comment1">valeurs</code><code class="matlab_comment1"> </code><code class="matlab_comment1">des</code><code class="matlab_comment1"> </code><code class="matlab_comment1">pixels</code><code class="matlab_comment1"> </code><code class="matlab_comment1">du</code><code class="matlab_comment1"> </code><code class="matlab_comment1">plan</code><code class="matlab_comment1"> </code><code class="matlab_comment1">R</code>

size(img)

 ans =

ans =

    75   100     3
</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[VRML of a segmented image]]></title>
<link>http://stef2cnrs.wordpress.com/?p=172</link>
<pubDate>Fri, 11 Jul 2008 16:01:59 +0000</pubDate>
<dc:creator>stef2cnrs</dc:creator>
<guid>http://stef2cnrs.wordpress.com/?p=172</guid>
<description><![CDATA[I have an image segmented in matlab (in the form of 3d matrix with
elements 0 and 1) and from that m]]></description>
<content:encoded><![CDATA[<p>I have an image segmented in matlab (in the form of 3d matrix with<br />
elements 0 and 1) and from that matrix I want to create a vrml model,<br />
do you know the best way to do it (with or without matlab, even if<br />
with matlab I have the virtual reality toolbox installed)!</p>
<p>f,v]=isosurface (3Dmatrix,0);<br />
translated to vrml with a simple script:</p>
<p>...<br />
[fid,errmsg] = fopen('mymodel.wrl','w+');<br />
...</p>
<p>----</p>
<p>fprintf(fid,'    coord Coordinate {\n');<br />
fprintf(fid,'    point [\n');</p>
<p>for i=1:size (v,1)<br />
fprintf(fid,'%f ',v(i,1)/500);<br />
fprintf(fid,'%f ',v(i,2)/500);<br />
fprintf(fid,'%f ',v(i,3)/500);<br />
fprintf(fid,'\n');<br />
end</p>
<p>fprintf(fid,'      ]#Point\n');<br />
fprintf(fid,'     }#Coordinate\n');<br />
fprintf(fid,'     index[\n');</p>
<p>for i=1:size (f,1)<br />
fprintf(fid,'%d ',f(i,1)-1);<br />
fprintf(fid,'%d ',f(i,2)-1);<br />
fprintf(fid,'%d ',f(i,3)-1);<br />
fprintf(fid,'\n');<br />
end</p>
<p>fprintf(fid,'      ]#index\n');</p>
<p>...</p>
<p>fclose (fid);</p>
<p>Will you please show some (first ten lines - max .1kB) of the result?</p>
<blockquote><p>
unfortunately 30 megabytes for a 218x218x128 image!</p></blockquote>
<p>The wrl file is not an image, it is the geometry and lighting.<br />
You are sending the browser (the program that runs the .wrl file</p>
<p>(sets of x,y,z vertex values along with the info to make them<br />
into triangles and lights that become pixels.</p>
<p><a rel="nofollow" href="http://www.web3d.org/x3d/specifications/ISO-IEC-19776-X3DEncodings-XML-ClassicVRML/">http://www.web3d.org/x3d/specifications/ISO-IEC-19776-X3DEncodings-XML-ClassicVRML/</a></p>
<blockquote><p>that's too much (for both speed and memory), even because i want to<br />
deal with much bigger matrix!</p></blockquote>
<p>Great, we all want that.</p>
<p>ref: http://newsgroups.derkeiler.com/Archive/Comp/comp.lang.vrml/2007-08/msg00007.html</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[VRML File Format]]></title>
<link>http://stef2cnrs.wordpress.com/?p=166</link>
<pubDate>Fri, 11 Jul 2008 15:08:35 +0000</pubDate>
<dc:creator>stef2cnrs</dc:creator>
<guid>http://stef2cnrs.wordpress.com/?p=166</guid>
<description><![CDATA[VRML File Format
You need not have any substantial knowledge of the VRML format to use the VRML auth]]></description>
<content:encoded><![CDATA[<p><span class="Head3" style="font-size:xx-small;"><strong>VRML File Format</strong></span><br class="hdr" /></p>
<p><a name="30084"></a>You need not have any substantial knowledge of the VRML format to use the VRML authoring tools to create virtual worlds. However, it is useful to have a basic knowledge of VRML scene description. This helps you to create virtual worlds more effectively, and gives you a good understanding of how the virtual world elements can be controlled using the <span style="font-family:sansserif;">Virtual Reality Toolbox</span>.</p>
<p><a name="35944"></a>This section is an introduction to VRML. For more information, refer to the <span style="font-family:sansserif;">VRML97 Reference</span>. This reference is available online at <a href="http://www.web3d.org/">http://www.web3d.org</a>.</p>
<p><a name="38828"></a>In VRML, a 3-D scene is described by a hierarchical tree structure of objects (nodes). Every node in the tree represents some functionality of the scene. <strong>There are 54 different types of nodes.</strong> Some of them are <em>shape nodes</em><strong><em> </em></strong><span style="font-family:sansserif;">(representing real 3-D objects)</span>, and some of them are <em>grouping nodes</em> used for holding child nodes. Here are some examples:</p>
<ul>
<li><a name="38829"></a><strong>Box node</strong><span style="font-family:sansserif;"> -- Represents a box in a scene.</span></li>
<li><a name="38830"></a><strong>Transform node</strong><span style="font-family:sansserif;"> -- Defines position, scale, scale orientation, rotation, translation, and children of its subtree (grouping node).</span></li>
<li><a name="38833"></a><strong>Material node</strong><span style="font-family:sansserif;"> -- Corresponds to material in a scene.</span></li>
<li><a name="38834"></a><strong>DirectionalLight node</strong><span style="font-family:sansserif;"> -- Represents lighting in a scene.</span></li>
<li><a name="38835"></a><strong>Fog node</strong><span style="font-family:sansserif;"> -- Allows you to modify the environment optical properties.</span></li>
<li><a name="30092"></a><strong>ProximitySensor node</strong><span style="font-family:sansserif;"> -- Brings interactivity to VRML97. This node generates events when the user enters, exits, and moves within the defined region in space.</span></li>
</ul>
<p><a name="30093"></a><span style="font-family:sansserif;">Each node contains a list of fields that hold values defining parameters for its function. </span></p>
<p><a name="30094"></a><span style="font-family:sansserif;">Nodes can be placed in the top level of a tree or as children of other nodes in the tree hierarchy. When you change a value in the field of a certain node, all nodes in its subtree are affected. This feature allows you to define relative positions inside complicated compound objects.</span></p>
<p><a name="30095"></a><span style="font-family:sansserif;">You can mark every node with a specific name by using the keyword </span><code>DEF</code><span style="font-family:sansserif;"> in the VRML scene syntax. For example, the statement </span><code>DEF MyNodeName Box</code><span style="font-family:sansserif;"> sets the name for this box node to </span><code>MyNodeName</code><span style="font-family:sansserif;">. You can only access the fields of those nodes that you name in a virtual world.</span></p>
<p><a name="30100"></a><span style="font-family:sansserif;">In the following example of a simple VRML file, two graphical objects are modeled in a 3-D scene: A floor is represented by a flat box with a red ball above it. Note that VRML file is a readable text file that you can write in any text editor.</span></p>
<ul class="continued">
<li class="continued">
<pre><a name="30101"></a>#VRML V2.0 utf8
<a name="30102"></a># This is a comment line
<a name="30103"></a>WorldInfo {
<a name="30104"></a>  title "Bouncing Ball"
<a name="30105"></a>}
<a name="30106"></a>Viewpoint {
<a name="30107"></a>  position 0 5 30
<a name="30108"></a>  description"Side View"
<a name="30109"></a>}
<a name="30110"></a>DEF Floor Box {
<a name="30111"></a>  size 6 0.2 6
<a name="30112"></a>}
<a name="30113"></a>DEF Ball Transform {
<a name="30114"></a>  translation 0 10 0
<a name="30115"></a>  children Shape {
<a name="30116"></a>    appearance Appearance {
<a name="30117"></a>      material Material {
<a name="30118"></a>        diffuseColor 1 0 0
<a name="30119"></a>      }
<a name="30120"></a>    }
<a name="30121"></a>    geometry Sphere {
<a name="30122"></a>    }
<a name="30123"></a>  }
<a name="30124"></a>}</pre>
</li>
</ul>
<p><a name="30125"></a><span style="font-family:sansserif;">The first line is the VRML header line. Every VRML file must start with this header line. It indicates that this is a VRML 2 file and that the text objects in the file are encoded according to the UTF8 standard. You use the number sign (#) to comment VRML worlds. Everything on a line after the # sign is ignored by a VRML viewer, with the exception of the first header line.</span></p>
<p><a name="30126"></a><span style="font-family:sansserif;">Most of the box properties are left at their default values -- distance from the center of coordinate system, material, color, and so on. Only the name </span><code>Floor</code><span style="font-family:sansserif;"> and the dimensions are assigned to the box. To be able to control the position and other properties of the ball, it is defined as a child node of a Transform type node. Here, the default unit sphere is assigned a red color and a position 10 m above the floor. In addition, the virtual world title is used by VRML viewers to distinguish between virtual worlds. A suitable initial viewpoint is defined in the virtual world VRML file. </span></p>
<p><a name="48044"></a>When displayed in V-Realm builder, the floor and red ball look like</p>
<p><a name="48045"></a><img src="http://www.mathworks.com/access/helpdesk_r13/help/toolbox/vr/trial_vr.gif" alt="" align="bottom" /></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Features of the Virtual Reality Toolbox Matlab VRML wrl]]></title>
<link>http://stef2cnrs.wordpress.com/?p=165</link>
<pubDate>Fri, 11 Jul 2008 15:05:20 +0000</pubDate>
<dc:creator>stef2cnrs</dc:creator>
<guid>http://stef2cnrs.wordpress.com/?p=165</guid>
<description><![CDATA[Features of the Virtual Reality Toolbox
The Virtual Reality Toolbox includes many features for you t]]></description>
<content:encoded><![CDATA[<p><span class="Head2" style="font-size:x-small;"><strong>Features of the Virtual Reality Toolbox</strong></span><br class="hdr" /></p>
<p><a name="40259"></a>The Virtual Reality Toolbox includes many features for you to create and visualize dynamic systems. It also provides real-time virtual interaction with dynamic models.</p>
<p><a name="40260"></a>This section includes the following topics that describe these features:</p>
<ul>
<li><a name="45059"></a><strong><a href="http://www.mathworks.com/access/helpdesk_r13/help/toolbox/vr/ch_intr4.html#41396">VRML Support</a></strong> --<span style="font-family:sansserif;">Use VRML to define a virtual world </span></li>
<li><a name="41492"></a><strong><a href="http://www.mathworks.com/access/helpdesk_r13/help/toolbox/vr/ch_intr5.html#41394">MATLAB Interface</a></strong> -- Control the virtual world from the MATLAB interface</li>
<li><a name="41496"></a><strong><a href="http://www.mathworks.com/access/helpdesk_r13/help/toolbox/vr/ch_intr6.html#40288">Simulink Interface</a></strong> -- Use Virtual Reality Toolbox blocks to connect your Simulink model to a virtual world</li>
<li><a name="41510"></a><strong><a href="http://www.mathworks.com/access/helpdesk_r13/help/toolbox/vr/ch_intr7.html#41537">VRML Viewers</a></strong> -- View your virtual world with the Virtual Reality Toolbox viewer or your Web browser</li>
<li><a name="41514"></a><strong><a href="http://www.mathworks.com/access/helpdesk_r13/help/toolbox/vr/ch_intr8.html#46638">VRML Editor</a></strong> -- Create virtual worlds using a VRML authoring tool or text editor</li>
<li><a name="45100"></a><strong><a href="http://www.mathworks.com/access/helpdesk_r13/help/toolbox/vr/ch_intr9.html#40856">Real-Time Workshop Support</a></strong> -- Support for simulations that use code generated by Real-Time Workshop</li>
<li><a name="40881"></a><strong><a href="http://www.mathworks.com/access/helpdesk_r13/help/toolbox/vr/ch_int10.html#40858">SimMechanics Support</a></strong> -- View the behavior of your SimMechanics model in a virtual world</li>
<li><a name="40886"></a><strong><a href="http://www.mathworks.com/access/helpdesk_r13/help/toolbox/vr/ch_int11.html#40827">Hardware Support</a></strong> -- Functions for using special hardware devices</li>
<li><a name="45095"></a><strong><a href="http://www.mathworks.com/access/helpdesk_r13/help/toolbox/vr/ch_int12.html#40745">Client-Server Architecture</a></strong> -- Provide client-server architecture for a single computer or network operation</li>
</ul>
]]></content:encoded>
</item>
<item>
<title><![CDATA[V-Realm Builder supports all 54 VRML97 types AND matlab]]></title>
<link>http://stef2cnrs.wordpress.com/?p=164</link>
<pubDate>Fri, 11 Jul 2008 15:04:23 +0000</pubDate>
<dc:creator>stef2cnrs</dc:creator>
<guid>http://stef2cnrs.wordpress.com/?p=164</guid>
<description><![CDATA[V-Realm Builder 2.0  buid28 is inside the VR toolbox but you must  install with the matlab editor ]]></description>
<content:encoded><![CDATA[<p><span style="font-family:sansserif;">V-Realm Builder 2.0  buid28 is inside the VR toolbox but you must  install with the matlab editor (command).<br />
</span></p>
<p><span style="font-family:sansserif;">V-Realm Builder 2 is a flexible, graphically oriented tool for 3-D editing and is available for Windows operating systems only. It is a native VRML authoring tool that provides a convenient interface to the VRML syntax. Its primary file format is VRML. Its graphical interface (GUI) offers not only the graphical representation of a 3-D scene and tools for interactive creation of graphical elements, but also a hierarchical tree-style view (tree viewer) of all the elements present in the virtual world.</span></p>
<p><a name="28051"></a><span style="font-family:sansserif;">These structure elements are called nodes. V-Realm Builder lists the nodes and their properties according to their respective VRML node types, and <span style="color:#ff0000;"><strong>it supports all 54 VRML97 types</strong></span>. For each type of node there is a specific tool for convenient modification of the node parameters. You can access node properties in two ways: </span></p>
<ul>
<li><a name="29394"></a><span style="font-family:sansserif;">Using dialog boxes accessible from the tree viewer </span></li>
<li><a name="29395"></a><span style="font-family:sansserif;">Directly, using a pointing device</span></li>
</ul>
<p><a name="29396"></a><span style="font-family:sansserif;">In many cases, it is easier to use the tree viewer to access nodes because it can be difficult to select a specific object in a 3-D scene. The tree view also lets you easily change the nesting levels of certain nodes to modify the virtual world according to your ideas. In the tree viewer, you can give the nodes unique names -- a feature necessary for working with Virtual Reality Toolbox.</span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[orbisnap free VRML viewer multiplatform Matlab remote server]]></title>
<link>http://stef2cnrs.wordpress.com/?p=163</link>
<pubDate>Fri, 11 Jul 2008 14:53:58 +0000</pubDate>
<dc:creator>stef2cnrs</dc:creator>
<guid>http://stef2cnrs.wordpress.com/?p=163</guid>
<description><![CDATA[Orbisnap is a free multi-platform VRML97 viewer that allows you to visualize virtual worlds. It is a]]></description>
<content:encoded><![CDATA[<p>Orbisnap is a free multi-platform VRML97 viewer that allows you to visualize virtual worlds. It is a simple, standalone VRML97 viewer.</p>
<p>In addition to a typical general VRML viewer functionality, Orbisnap offers the following features:</p>
<p>*Managing virtual scene viewpoints<br />
*Saving VRML files</p>
<p>* Server mode<br />
*Ability to connect to a remote server running Virtual Reality Toolbox  (Matlab ©) and display virtual worlds served by this server .</p>
<p><a href="http://www.orbisnap.com">http://www.orbisnap.com</a></p>
<p>http://www.orbisnap.com/download2.html</p>
<p>-----------------------------</p>
<h5>Orbisnap requires <a href="http://www.opengl.org/" target="_top"><span style="text-decoration:underline;"><span style="color:#0d2b98;">OpenGL</span></span></a> capable graphics adapter, preferably with 3D hardware acceleration</h5>
<p>Operating System</p>
<p>Processors<br />
32-bit Windows XP, Windows 2000, Windows Vista, Windows Server 2003</p>
<p>Intel Pentium III, IV, Xeon, Pentium M<br />
AMD Athlon, Athlon XP, Athlon MP<br />
64-bit Windows XP, Windows 2000, Windows Vista, Windows Server 2003</p>
<p>Intel EMT64 processors<br />
AMD64 processors<br />
32-bit Linux Kernel 2.4.x and glibc 2.3.4 and above,<br />
32-bit Linux Kernel 2.6.x and glibc 2.3.4 and above</p>
<p>Intel Pentium III, IV, Xeon, Pentium M<br />
AMD Athlon, Athlon XP, Athlon MP<br />
64-bit Linux Kernel 2.4.x and glibc 2.3.4 and above,<br />
64-bit Linux Kernel 2.6.x and glibc 2.3.4 and above</p>
<p>Intel EMT64 processors<br />
AMD64 processors<br />
Mac OS X 10.4</p>
<p>PowerPC G4 and above, Intel<br />
64-bit Sun Solaris 8, 9, 10</p>
<p>SPARC, ultraSPARC</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[3D Plotting Routine for Matlab]]></title>
<link>http://raulmonsalve.wordpress.com/?p=48</link>
<pubDate>Fri, 11 Jul 2008 04:51:47 +0000</pubDate>
<dc:creator>raulmonsalve</dc:creator>
<guid>http://raulmonsalve.wordpress.com/?p=48</guid>
<description><![CDATA[A useful function to plot data in Matlab is plot3k which allows you to get 3d scatterplots, importan]]></description>
<content:encoded><![CDATA[<p>A useful function to plot data in Matlab is <a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=9519&#38;objectType=FILE">plot3k</a> which allows you to get 3d scatterplots, important when dealing with real data outputs.</p>
<p>These pictures correspond to the Q and U polarizations of the moon (not to scale) obtained with that routine</p>
<p><a href="http://raulmonsalve.files.wordpress.com/2008/07/q.jpg"><img class="aligncenter size-medium wp-image-49" src="http://raulmonsalve.wordpress.com/files/2008/07/q.jpg?w=300" alt="" width="300" height="225" /></a></p>
<p><a href="http://raulmonsalve.files.wordpress.com/2008/07/u.jpg"><img class="aligncenter size-medium wp-image-50" src="http://raulmonsalve.wordpress.com/files/2008/07/u.jpg?w=300" alt="" width="300" height="225" /></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Matlab 2008a activation woes]]></title>
<link>http://xenocoder.wordpress.com/?p=95</link>
<pubDate>Thu, 10 Jul 2008 20:04:16 +0000</pubDate>
<dc:creator>xenocoder</dc:creator>
<guid>http://xenocoder.wordpress.com/?p=95</guid>
<description><![CDATA[OK, so I spent a bit of time yesterday thinking about some alternatives to Matlab versus the time/mo]]></description>
<content:encoded><![CDATA[<p>OK, so I spent a bit of time yesterday thinking about some alternatives to Matlab versus the time/money balance of learning a completely new system. Today's adventure activating Matlab 2008a has me definitely leaning in the "alternative" direction.</p>
<p>A little background on Matlab 2008a and the activation model. With 2008a Matlab has moved to an activation model, where you have to basically register your computer with The Math Works. With an individual license there are two choices you have: lock the license to a computer, or lock it to an individual. As I use Matlab at home, at work, and on my laptop I chose to lock it to myself. </p>
<p>Now Matlab 2008a came out in February 2008, and I'm just trying to install it now, which is all based on my fear of activation, since usually I am eager to download and install the latest version. So I bit the bullet yesterday and installed the OSX (laptop) and linux versions. Usually I get a nice CD package with installations for all platforms but that must have ended as well.</p>
<p>So this morning I figured that I would give installation a go. Usually a 5-10 minute affair, I spent 90+ minutes on this, and it still doesn't work on the linux box. Basically what would happen is that I would go through the automated steps (generate the file key, license file, download and give info where needed, rinse, repeat) and watch Matlab completely have a hissy fit that either my username didn't match, or my host ID didn't match or that I didn't have the desk pointed northeast (well, not that last one). I did my civic duty and dug around the troubleshooting site, where I found exactly three entries for activation problems. This must mean that I am completely unlucky to both have a problem and to have a non-standard problem that could not be fixed with answers #1-3.</p>
<p>At any rate, time is money right? So I figured I would give tech support a call. I got through on the second try, and actually go a human who was surprisingly helpful. The main problem on both machines was that the host ID generated was from the MAC address of the active internet connection, which is not what the license manager wants to see. So the laptop fix was an easy one after all, just use the MAC address of the primary connection, which was the wired connection (I was using the wireless at the time). In hindsight, yeah, that makes sense, but there's still too much voodoo involved for me.</p>
<p>The linux box was worse, where I do not have eth0 enabled since I have problems with it, and I use eth1 instead. So while to the operating system there is only eth1 (as far as I understand) the license file wants to communicate with eth0, which of course doesn't exist in the software space (now I may be way off on this, but this is what I could come up with for now). So my options are to either rename eth1 to eth0, or activate eth0. Well guess what, at this point I'm inclined to just not run Matlab 2008a since I don't really feel like risking the possibility of borking my internet connection just to get the latest version of Matlab running. So remind me again why I am paying those maintenance fees? Maybe I'm no activation super genius, but should it really be this difficult to get software that you've paid good money for to run? Sure, there's still an open thread with tech support but how much more time do I want to spend on this today? Well that's easy, none.</p>
<p>Now I may feel differently in a bit and try again. Or I may just drink more coffee and start installing <a href="http://www.sagemath.org/">Sage</a> or <a href="http://www.enthought.com/">Enthought</a> and see how that goes. Or maybe I'll just try to get some work done. </p>
<p><!-- Technorati Tags Start --></p>
<p>Technorati Tags:<br />
<a href="http://technorati.com/tag/linux" rel="tag">linux</a>, <a href="http://technorati.com/tag/Mac%20OS%20X" rel="tag">Mac OS X</a>, <a href="http://technorati.com/tag/python" rel="tag">python</a>, <a href="http://technorati.com/tag/matlab" rel="tag">matlab</a>
</p>
<p><!-- Technorati Tags End --></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Matlab and FFT]]></title>
<link>http://raulmonsalve.wordpress.com/?p=47</link>
<pubDate>Thu, 10 Jul 2008 06:02:22 +0000</pubDate>
<dc:creator>raulmonsalve</dc:creator>
<guid>http://raulmonsalve.wordpress.com/?p=47</guid>
<description><![CDATA[Useful link about the implementation of FFT in Matlab.

http://www.ele.uri.edu/~hansenj/projects/ele]]></description>
<content:encoded><![CDATA[<p>Useful link about the implementation of FFT in Matlab.</p>
<p><code><br />
http://www.ele.uri.edu/~hansenj/projects/ele436/fft.pdf<br />
</code></p>
<p>Also, here they talk about the amplitudes, very useful:</p>
<p><code><br />
http://www.dsprelated.com/groups/matlab/show/495.php<br />
</code></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Displaying a sequence of images like video in matlab]]></title>
<link>http://chi3x10.wordpress.com/?p=30</link>
<pubDate>Wed, 09 Jul 2008 20:44:53 +0000</pubDate>
<dc:creator>chi3x10</dc:creator>
<guid>http://chi3x10.wordpress.com/?p=30</guid>
<description><![CDATA[images is an array of dim imageHeight x imageWidth x frameNumber


for i = 1:size(images,3)
    imsh]]></description>
<content:encoded><![CDATA[<p>images is an array of dim imageHeight x imageWidth x frameNumber</p>
<p>[sourcecode language='cpp']</p>
<p>for i = 1:size(images,3)<br />
    imshow(images(:,:,i));<br />
    title(['frame# ' num2str(i)]);<br />
    drawnow; %// this is why it works<br />
end</p>
<p>[/sourcecode]</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Matlab, Python, or R... Time versus Money]]></title>
<link>http://xenocoder.wordpress.com/?p=94</link>
<pubDate>Wed, 09 Jul 2008 18:22:46 +0000</pubDate>
<dc:creator>xenocoder</dc:creator>
<guid>http://xenocoder.wordpress.com/?p=94</guid>
<description><![CDATA[I&#8217;ve been a Matlab user for 15 years, and over that time period I&#8217;ve of course become fa]]></description>
<content:encoded><![CDATA[<p>I've been a <a href="http://www.mathworks.com/">Matlab</a> user for 15 years, and over that time period I've of course become fairly dependent on it to get things done quickly. The downside? It's expensive. It's a pretty penny to buy the base package, toolboxes are extra, and there are recurrent "maintenance" costs each year to get upgrades.</p>
<p>Sure, that's standard practice, but each year I have to stand up and justify to my boss why we need to pay these costs for our multiple Matlab users in our shop (a multi-user concurrent license is out of the question, don't even ask). So what's a user to do?</p>
<p>For years we've just bit the bullet and paid the fee, but with options such as <a href="http://www.r-project.org/">R</a> and <a href="http://numpy.scipy.org/">Numpy</a>/<a href="http://www.scipy.org/">SciPy</a> out there it may be time to loosen the chain a bit. Or maybe not.</p>
<p>A couple of possible alternatives to Matlab and their respective pros and cons:</p>
<p>R</p>
<p>R is a really nice statistical environment which has pretty much become the industry standard, replacing the very expensive S-Plus. It's easy to install, has an excellent GUI on OS X, and has a ton of community released packages which are usually made during the preparation of scientific papers. There are some downsides, as there can be multiple (sometimes possibly conflicting) packages (e.g. gam vs mgcv) but choice is good, right? The cons for me are that it's a new language to learn, and even though I write an m-script for everything, I find the scripting in R a bit clunky, even writing in TextWrangler and then hitting CTRL-R to have the <a href="http://dataninja.wordpress.com/2006/01/06/r-for-textwrangler-applescript/">SendToR</a> script source the code for me. It's just something new, and while the built in functions are really nice, the learning curve for coding things is higher, and will it be faster in the long run than just using Matlab? </p>
<p>Numpy/SciPy</p>
<p>The Numpy/SciPy combo in Python is a viable alternative to Matlab, even having a <a href="http://www.scipy.org/NumPy_for_Matlab_Users">page dedicated to showing you how easy it is to transition from Matlab.</a> As with R, it's free, and there are a ton of functions available, but there is a downside for me. I've successfully installed it on CentOS 5.1 and OS X 10.5, but it was a bit complicated. I know that these are packaged in many distributions, but not in CentOS, and I had to install from either source or .egg files, which isn't all that tough, but took some time. I'm not writing the 24.3 steps I did to get it installed because honestly, I didn't write it down and I don't remember what I did. Next time I promise to list it out! On OS X I did it all through MacPorts on the MP version of python 2.5. Again, it took some massaging to get it all set up since I was using the non-default install of python. </p>
<p>Overall though, the reason for this little diatribe is that while there are alternatives to Matlab, they all involve learning new ways to do things which, after I successfully learn them, may not be faster than just doing it in Matlab. Most of the time I just need to get things done, and the $7/day cost of Matlab may be well worth it if I'm saving more than 10 minutes of time during that day (assuming for a minute that I am earning $42/hour).</p>
<p>I'm rambling a bit here, but these are just questions that I ask myself as I code things up at the desk. For each of these tools has their place, and in terms of maximum comfort and speed, I use each of them for their strengths. The main dilemma is that in a perfect situation I would drop the commercial Matlab for the free/open source alternatives, but at a minimal cost in dollars and time.</p>
<p><!-- Technorati Tags Start --></p>
<p>Technorati Tags:<br />
<a href="http://technorati.com/tag/linux" rel="tag">linux</a>, <a href="http://technorati.com/tag/Mac%20OS%20X" rel="tag">Mac OS X</a>, <a href="http://technorati.com/tag/programming" rel="tag">programming</a>, <a href="http://technorati.com/tag/python" rel="tag">python</a>, <a href="http://technorati.com/tag/R" rel="tag">R</a>, <a href="http://technorati.com/tag/scientific%20programming" rel="tag">scientific programming</a>
</p>
<p><!-- Technorati Tags End --></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Download Materi Grafik Matlab (Praktikum)]]></title>
<link>http://mygreatdays.wordpress.com/?p=17</link>
<pubDate>Wed, 09 Jul 2008 03:34:03 +0000</pubDate>
<dc:creator>7ack</dc:creator>
<guid>http://mygreatdays.wordpress.com/?p=17</guid>
<description><![CDATA[Bagi teman-teman kelas Asistensi Aljabar Linear dan Matriks, silakan download materi Grafik 2D &amp;]]></description>
<content:encoded><![CDATA[<p><strong><span style="color:#ff0000;">Bagi teman-teman kelas Asistensi Aljabar Linear dan Matriks, silakan download materi Grafik 2D &#38; 3D Matlab di sini.</span></strong></p>
<blockquote><p><a title="Materi Grafik 2D" href="http://www.mediafire.com/?zbywt0zz9yg" target="_blank">Download materi Grafik 2D</a></p>
<p><a title="Tugas takehome" href="http://www.mediafire.com/?gtx8ubtkxww" target="_blank">Download tugas takehome</a></p></blockquote>
<p><span style="color:#008000;">Baca petunjuk dan kerjakan sebaik-baiknya. Kalau ada pertanyaan, lewat comment aja ya.</span></p>
<p>Selamat mengerjakan.</p>
<blockquote><p><a title="Download materi 3D" href="http://www.mediafire.com/?kdvmmjboryz" target="_blank">Download materi Grafik 3D</a></p></blockquote>
<p>Selamat mengerjakan Tugas Rancang Anda. Semangat dan antusias kamu bisa!</p>
<p>God bless!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Creating a Rotating Ellipse in Matlab]]></title>
<link>http://tabman.wordpress.com/?p=8</link>
<pubDate>Sun, 06 Jul 2008 15:42:19 +0000</pubDate>
<dc:creator>tabman</dc:creator>
<guid>http://tabman.wordpress.com/?p=8</guid>
<description><![CDATA[While working on some of research work I came across a situation where I wanted to generate a rotati]]></description>
<content:encoded><![CDATA[<p>While working on some of research work I came across a situation where I wanted to generate a rotating Ellipse in 2D whose point of rotation I should define myself. It turns out it is pretty simple to do. To learn about 2D rotation from Computer Vision perspective, see <a href="http://www.siggraph.org/education/materials/HyperGraph/modeling/mod_tran/2drota.htm" target="_blank">this</a> link.</p>
<p>The most useful function in this code that I would like to mention is poly2mask. It is just an amazing function. What poly2mask would do is return you a binary image based on your region of interest and that region of interest is a polygon defined by set of points (vectors). In my case my polygon was a set of points connecting to form an Ellipse but if you understand the code then you can make any kind of rotating polygon using Matlab. Read the comments in the code and I guess you should be able to understand it.  Here is the prototype of the function call. The code generates a sequence of bmp files which were later converted to an mpeg video using imagemagick.</p>
<p>function [x,y] = generateEllipse(h, k, a, b,imageSize)</p>
<p>where h,k,a,b are standard notation for an Ellipse and imageSize is the size of an nxn output frame in which the Ellipse is going to rotate. Make sure to choose a big enough size which can accommodate an Ellipse white rotating</p>
<p>To watch the outcome from the code, see these videos:</p>
<p>Note the point of rotation in both videos.</p>
<p>Point of rotation is the centre:</p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/CocoX0yixi8'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/CocoX0yixi8&rel=0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object></span></p>
<p> </p>
<p>Point of rotation is the left corner:</p>
<p><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/7Ik2StDwJ5o'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/7Ik2StDwJ5o&rel=0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object></span></p>
<p> </p>
<p>Using this code you can choose any point as "Point of Rotation" but make sure the point you choose lies inside the Ellipse. The code takes "Point of Rotation" output through the mouse using the Matlab function ginput and here is the code:</p>
<pre>function [x,y] = generateEllipse(h, k, a, b,imageSize) 

steps = 36;

%angle at which the Ellipse is initially located
atAngle = 0;

beta = atAngle / 180 * pi;
sinbeta = sin(beta);
cosbeta = cos(beta);

%we need to make a turn of 360 degrees to make a well formed Ellipse
i=1:360/steps:360;
alpha = i / 180 * pi;
sinalpha = sin(alpha);
cosalpha = cos(alpha);

%round function is important so as to store the points in the matrix
%the formula used is the parametric equation for Ellipse
x = round(h + (a * cosalpha * cosbeta - b * sinalpha * sinbeta)); 
y = round(k + (b * sinalpha * cosbeta + a * cosalpha * sinbeta));

%to connect with the line initial point so to make a connected Ellipse
x = [x,x(1)];
y = [y,y(1)];

bw = poly2mask(x,y,imageSize,imageSize);
imshow(bw);

 
%the user selects the point of rotation using the mouse

[rotationPointX rotationPointY] = ginput(1);
close

%translating the rotations points to origin

x1 = x-rotationPointX;
y1 = y-rotationPointY;

%the Ellipse will rotate ahead by 10 degree in each successive frame
rotationAngle = 10;

for index=0:299 %to generate 300 frames
    angle = mod(rotationAngle*index,360);
    %the equation for rotation

    newX = x1* cosd(angle) - y1*sind(angle); 
    newY = x1* sind(angle) + y1*cosd(angle);

    
    % return a binary image by masking the Ellipse region
    bw = poly2mask(newX+rotationPointX,newY+rotationPointY,imageSize,imageSize);
    figure
    imshow(bw);
    close

    fileName = sprintf('Ellipse1_frame_%s%04i.bmp', '', index)
    imwrite(bw,fileName);
end</pre>
<p><strong>The code was written in Matlab7.</strong></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[find: menemukan posisi matriks]]></title>
<link>http://orgawam.wordpress.com/?p=348</link>
<pubDate>Wed, 02 Jul 2008 08:06:43 +0000</pubDate>
<dc:creator>orgawam</dc:creator>
<guid>http://orgawam.wordpress.com/?p=348</guid>
<description><![CDATA[find
Menemukan posisi matriks (vektor) dengan nilai tak nol
Ada vektor dengan nilai komponen seperti]]></description>
<content:encoded><![CDATA[<p><strong>find</strong></p>
<p>Menemukan posisi matriks (vektor) dengan nilai tak nol</p>
<p>Ada vektor dengan nilai komponen seperti berikut,</p>
<p>&#62;&#62; X = [1 0 4 -3 0 0 0 8 6]<br />
<!--more--></p>
<p>X =</p>
<p>1     0     4    -3     0     0     0     8     6<br />
Nilai indeks ke 3 7 dan 1 ditentukan dengan perintah,</p>
<p>&#62;&#62; X([3 7 1])</p>
<p>ans =</p>
<p>4     0     1<br />
variabel indices menunjukkan <strong>posisi </strong>(indeks) matriks X yang mempunyai nilai tak nol</p>
<p>&#62;&#62; indices = find(X)</p>
<p>indices =</p>
<p>1     3     4     8     9</p>
<p><strong>posisi </strong>(indeks) matriks X dengan nilai lebih besar dari 2</p>
<p>&#62;&#62; find(X &#62; 2)</p>
<p>ans =</p>
<p>3     8     9<br />
<strong>posisi </strong>(indeks) matriks X dengan nilai sama dengan 0</p>
<p>&#62;&#62; find(X == 0)</p>
<p>ans =</p>
<p>2     5     6     7</p>
<p>Menampilkan nilai matriks X dengan nilai lebih besar dari 2</p>
<p>&#62;&#62; X(find(X &#62; 2))</p>
<p>ans =</p>
<p>4     8     6</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[A legend used in the movie "The Happening"]]></title>
<link>http://autarkaw.wordpress.com/?p=34</link>
<pubDate>Fri, 27 Jun 2008 00:05:42 +0000</pubDate>
<dc:creator>Autar Kaw</dc:creator>
<guid>http://autarkaw.wordpress.com/?p=34</guid>
<description><![CDATA[Well M. Night Shyamalan may have made another disappointing movie - The Happening, but I somewhat li]]></description>
<content:encoded><![CDATA[<p>Well M. Night Shyamalan may have made another disappointing movie - <a href="http://www.mrqe.com/lookup?%5EHappening,+The+(2008)">The Happening</a>, but I somewhat liked it.  I would give it a grade of B.</p>
<p>In the movie, John Leguzomo's character, a math teacher, is distracting his fellow panicking passenger in the Jeep with a mathematical question.  The question he asks her is if he gave her a penny on Day 1 of the month, two pennies on Day 2 of the month, four pennies on Day 3 of the month, and so on, how much would money would she have after a month.  She shouts $300 or some odd number like that.  But, do you know that the amount is actually more than a 10 million dollars (Thanks to a student who mentioned that it was a penny that John offered on the first day, not a dollar - sometimes I do feel generous).</p>
<p>This question is based on a story from India and it goes as follows.</p>
<p>King Shriham of India wanted to reward his grand minister Ben for inventing the game of chess.  When asked what reward he wanted, Ben asked for 1 grain of rice on the first square of the board, 2 on the second square of the board, 4 on the third square of the board, 8 on the fourth square of the board, and so on till all the 64 squares were covered.  That is, he was doubling the number of grains on each successive square of the board.  Although Ben’s request looked less than modest, King Shriham quickly found that the amount of rice that Ben was asking for was humongous.</p>
<p><strong>QUESTIONS</strong>:</p>
<p>Write a MATLAB (you can use any other programming language) program for the following using the for or while loop.</p>
<ol>
<li>Find out how many grains of rice Ben was asking for.</li>
<li>If the mass of a grain of rice is 2 <em>mg</em>, and the world production of rice in recent years has been approximately 600,000,000 <em>tons</em> (1 ton=1000 kg), how many times the modern world production was Ben's request?</li>
<li>Do the inverse problem - find out how many squares are covered if the the number of grains on the chess board are given to you.  For example, how many squares will be covered if the number of grains on the chess board are 16?</li>
</ol>
<p><span style="color:#800000;">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></span></p>
<p><a href="http://feeds.feedburner.com/AutarkawsWeblog">Subscribe to the feed</a> to stay updated and let the information follow you.</p>
]]></content:encoded>
</item>

</channel>
</rss>
