<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Introduction</title>
	<link>http://blogs.mathworks.com/loren/2005/12/13/introduction/</link>
	<description>Loren Shure  works on design of the MATLAB language at The MathWorks. She writes here about once a week on MATLAB programming and related topics. </description>
	<pubDate>Thu, 07 Aug 2008 23:45:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: tando</title>
		<link>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-17303</link>
		<dc:creator>tando</dc:creator>
		<pubDate>Wed, 12 Sep 2007 17:55:52 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-17303</guid>
		<description>I'm a Matlab beginner and quite recently we were asked to make a program. I'm struggling to find respective forces that will make Moment=0 i.e i know that Moment=cross(r1,F1)+ cross(r2,F2)+.....+cross(rn,Fn) and I know that Moment=0, I need to find the Forces that will make the Moment=0. Can you please suggest ways that I could try to solve this! I've tried if and while Loops.Thanx</description>
		<content:encoded><![CDATA[<p>I&#8217;m a Matlab beginner and quite recently we were asked to make a program. I&#8217;m struggling to find respective forces that will make Moment=0 i.e i know that Moment=cross(r1,F1)+ cross(r2,F2)+&#8230;..+cross(rn,Fn) and I know that Moment=0, I need to find the Forces that will make the Moment=0. Can you please suggest ways that I could try to solve this! I&#8217;ve tried if and while Loops.Thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-17189</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Tue, 11 Sep 2007 11:23:04 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-17189</guid>
		<description>Kamal-

In addition to the MATLAB documentation, which is quite good, and the demos that ship with MATLAB, you might look for books here:

http://www.mathworks.com/support/books/

--Loren</description>
		<content:encoded><![CDATA[<p>Kamal-</p>
<p>In addition to the MATLAB documentation, which is quite good, and the demos that ship with MATLAB, you might look for books here:</p>
<p><a href="http://www.mathworks.com/support/books/" rel="nofollow">http://www.mathworks.com/support/books/</a></p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamal</title>
		<link>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-17178</link>
		<dc:creator>kamal</dc:creator>
		<pubDate>Tue, 11 Sep 2007 09:25:22 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-17178</guid>
		<description>My email id is
    kamal_035@yahoo.co.in</description>
		<content:encoded><![CDATA[<p>My email id is<br />
    <a href="mailto:kamal_035@yahoo.co.in">kamal_035@yahoo.co.in</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamal</title>
		<link>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-17177</link>
		<dc:creator>kamal</dc:creator>
		<pubDate>Tue, 11 Sep 2007 09:23:47 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-17177</guid>
		<description>Hello Madam,
       I am kamal,doing my final year course of engg.By seeing at your introduction I thought you could give a solution to my  problem. I am doing a project based on matlab programmming &#38; simulation.In our project we have to write program as to when to open and close a circuit breaker.Also I have to monitor the voltages at some points in the system.the simulaed power circuit should according to the written program.
       The problem is I could not write a program.though books are available which describes how to programs for calculating different series of numbers ,plots(only mathematical).
       so, please give me information about concerned books.
thanking you..</description>
		<content:encoded><![CDATA[<p>Hello Madam,<br />
       I am kamal,doing my final year course of engg.By seeing at your introduction I thought you could give a solution to my  problem. I am doing a project based on matlab programmming &amp; simulation.In our project we have to write program as to when to open and close a circuit breaker.Also I have to monitor the voltages at some points in the system.the simulaed power circuit should according to the written program.<br />
       The problem is I could not write a program.though books are available which describes how to programs for calculating different series of numbers ,plots(only mathematical).<br />
       so, please give me information about concerned books.<br />
thanking you..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-32</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Fri, 10 Feb 2006 17:16:36 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-32</guid>
		<description>My recommendation for you is to start reading about MATLAB, beginning with &lt;a href="http://www.mathworks.com/access/helpdesk/help/techdoc/learn_matlab/learn_matlab.html" rel="nofollow"&gt;Getting Started with MATLAB&lt;/a&gt;.  Many users find this a helpful start on their MATLAB learning curve.  You might also look at some of the &lt;a href="http://www.mathworks.com/products/matlab/demos.html" rel="nofollow"&gt;MATLAB demos&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>My recommendation for you is to start reading about MATLAB, beginning with <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/learn_matlab/learn_matlab.html" rel="nofollow">Getting Started with MATLAB</a>.  Many users find this a helpful start on their MATLAB learning curve.  You might also look at some of the <a href="http://www.mathworks.com/products/matlab/demos.html" rel="nofollow">MATLAB demos</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: O.E. KEVEEN</title>
		<link>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-31</link>
		<dc:creator>O.E. KEVEEN</dc:creator>
		<pubDate>Fri, 10 Feb 2006 09:37:18 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-31</guid>
		<description>I am a 19yrs old student from Nigeria. I am studying computer science in a polytechnic here in Nigeria. I really do like MATLAB. I think learning how to program in MATLAB is really going to be great.
 Here in my school, we don't have MATLAB in the schools Computer Laboratory. There is FORTRAN , COBOL, BASIC. 
 I have known about MATLAB about 2-months but I have not have the opportunity to work with it. I told some of my course mates in school about MATLAB, because non of them know about this New MATLAB programming.
  I'll also want to know more about MATLAB.
                Thanks Yours Faithfully,
                 KEVEEN ORIKPETE EFE
                 #68 JATTU ROAD,
                 OPP. TANIAS AUCHI,
                 EDO STATE, NIGERIA.</description>
		<content:encoded><![CDATA[<p>I am a 19yrs old student from Nigeria. I am studying computer science in a polytechnic here in Nigeria. I really do like MATLAB. I think learning how to program in MATLAB is really going to be great.<br />
 Here in my school, we don&#8217;t have MATLAB in the schools Computer Laboratory. There is FORTRAN , COBOL, BASIC.<br />
 I have known about MATLAB about 2-months but I have not have the opportunity to work with it. I told some of my course mates in school about MATLAB, because non of them know about this New MATLAB programming.<br />
  I&#8217;ll also want to know more about MATLAB.<br />
                Thanks Yours Faithfully,<br />
                 KEVEEN ORIKPETE EFE<br />
                 #68 JATTU ROAD,<br />
                 OPP. TANIAS AUCHI,<br />
                 EDO STATE, NIGERIA.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Phelan</title>
		<link>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-13</link>
		<dc:creator>Brad Phelan</dc:creator>
		<pubDate>Fri, 16 Dec 2005 11:46:32 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2005/12/13/introduction/#comment-13</guid>
		<description>Hi Loren,

Natural notation in Matlab could be enhanced by allowing Ruby [ http://www.ruby-lang.org/en/ ] style blocks and iterators. In Ruby every statment is an expression and functions can have blocks implicitly passed to them by providing a ''do'' keyword after the function call. The do keyword opens a block and end closes it. The last expression evaluated is the return value of the block. 

The observation to make is that for loops and while loops are just specialized cases of iterators. Ruby allows the user to create any type of iterator they can imagine. For example here is the usage of an iterator that generates first 10 fibonacci numbers and only prints them if they are greater than 10;

&lt;pre class="code"&gt;
fib(10) do &#124;f&#124;
   if f &#62; 10
      print(f)
   end
end
&lt;/pre&gt;

instead of

&lt;pre class="code"&gt;
for i = 1:10
   f = fib(i) % Extra line not needed!
   if f &#62; 10
      print(f)
   end
end
&lt;/pre&gt;

But iterators are not limited to generating sequential items. They could be used to allow the user to write natural mathematical notation. In Ruby if the quad function were defined you could do a triple integration something like this. ( Performance considerations excluded! )

&lt;pre class="code"&gt;
r = Math.quad(0, 1) do &#124;x&#124;
  Math.quad(0, 2) do &#124;y&#124;
    Math.quad(0,3) do &#124;z&#124;
       if x &#62; 0
          x^2 + y^2 + y^2
       else
          x + y + z
       end
    end
  end
end
&lt;/pre&gt;

To do the same in Matlab would require a great deal of boiler plate code including named nested functions. You can observe very often in the use of nested functions that the function is only ever used once! 

I have implemented such an extension to Matlab for my templating engine and you can have a look at it in action at

http://xtargets.com/cms/index.php?option=content&#38;task=view&#38;id=18

It is a change to the Matlab language that compiles into Matlab and makes generating text/code/html/xml etc really easy from Matlab.

Regards

Brad</description>
		<content:encoded><![CDATA[<p>Hi Loren,</p>
<p>Natural notation in Matlab could be enhanced by allowing Ruby [ <a href="http://www.ruby-lang.org/en/" rel="nofollow">http://www.ruby-lang.org/en/</a> ] style blocks and iterators. In Ruby every statment is an expression and functions can have blocks implicitly passed to them by providing a &#8221;do&#8221; keyword after the function call. The do keyword opens a block and end closes it. The last expression evaluated is the return value of the block. </p>
<p>The observation to make is that for loops and while loops are just specialized cases of iterators. Ruby allows the user to create any type of iterator they can imagine. For example here is the usage of an iterator that generates first 10 fibonacci numbers and only prints them if they are greater than 10;</p>
<pre class="code">
fib(10) do |f|
   if f &gt; 10
      print(f)
   end
end
</pre>
<p>instead of</p>
<pre class="code">
for i = 1:10
   f = fib(i) % Extra line not needed!
   if f &gt; 10
      print(f)
   end
end
</pre>
<p>But iterators are not limited to generating sequential items. They could be used to allow the user to write natural mathematical notation. In Ruby if the quad function were defined you could do a triple integration something like this. ( Performance considerations excluded! )</p>
<pre class="code">
r = Math.quad(0, 1) do |x|
  Math.quad(0, 2) do |y|
    Math.quad(0,3) do |z|
       if x &gt; 0
          x^2 + y^2 + y^2
       else
          x + y + z
       end
    end
  end
end
</pre>
<p>To do the same in Matlab would require a great deal of boiler plate code including named nested functions. You can observe very often in the use of nested functions that the function is only ever used once! </p>
<p>I have implemented such an extension to Matlab for my templating engine and you can have a look at it in action at</p>
<p><a href="http://xtargets.com/cms/index.php?option=content&amp;task=view&amp;id=18" rel="nofollow">http://xtargets.com/cms/index.php?option=content&amp;task=view&amp;id=18</a></p>
<p>It is a change to the Matlab language that compiles into Matlab and makes generating text/code/html/xml etc really easy from Matlab.</p>
<p>Regards</p>
<p>Brad</p>
]]></content:encoded>
	</item>
</channel>
</rss>
