<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259266</link>
    <title>MATLAB Central Newsreader - Great, great Request</title>
    <description>Feed for thread: Great, great Request</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 25 Aug 2009 02:40:21 -0400</pubDate>
      <title>Great, great Request</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259266#675474</link>
      <author>Tato Jandieri</author>
      <description>Hello,&lt;br&gt;
&lt;br&gt;
I have a request and please help me. I think it is easy, but I failed. &lt;br&gt;
It is urgent.&lt;br&gt;
&lt;br&gt;
I have a physical problem that I am solving in Matlab.&lt;br&gt;
I have 4 pulses f1(t), f2(t)... radiated from different receivers R(1), R(2)....&lt;br&gt;
I have already written a loop for one pulse that characterizes f1(t) pulse propagation in medium:&lt;br&gt;
&lt;br&gt;
for t=1:nmax&lt;br&gt;
....................&lt;br&gt;
R(1)=f1(t)&lt;br&gt;
...................&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
My problem is that I would like to consider in the same loop 4 different pulses. When calculation for f1(t) is finished, calculation for f2(t) should start automatically...and so on. &lt;br&gt;
Of course, I can copy 4 times the same loop for different pulses, but this loop is too big and it is very inconvenient. Please, help me. It is urgent. &lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</description>
    </item>
    <item>
      <pubDate>Tue, 25 Aug 2009 06:44:02 -0400</pubDate>
      <title>Re: Great, great Request</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259266#675495</link>
      <author>Gavrilo Bozovic</author>
      <description>&quot;Tato Jandieri&quot; &amp;lt;vjandieri@yahoo.com&amp;gt; wrote in message &amp;lt;h6viul$48e$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hello,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have a request and please help me. I think it is easy, but I failed. &lt;br&gt;
&amp;gt; It is urgent.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have a physical problem that I am solving in Matlab.&lt;br&gt;
&amp;gt; I have 4 pulses f1(t), f2(t)... radiated from different receivers R(1), R(2)....&lt;br&gt;
&amp;gt; I have already written a loop for one pulse that characterizes f1(t) pulse propagation in medium:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; for t=1:nmax&lt;br&gt;
&amp;gt; ....................&lt;br&gt;
&amp;gt; R(1)=f1(t)&lt;br&gt;
&amp;gt; ...................&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; My problem is that I would like to consider in the same loop 4 different pulses. When calculation for f1(t) is finished, calculation for f2(t) should start automatically...and so on. &lt;br&gt;
&amp;gt; Of course, I can copy 4 times the same loop for different pulses, but this loop is too big and it is very inconvenient. Please, help me. It is urgent. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;     &lt;br&gt;
&lt;br&gt;
Couldn't you just save the contents of your loop as a function, and call it 4 times, for your 4 pulses? You won't repeat the same part of code 4 times, and, secondarily, it will keep your main code smaller.&lt;br&gt;
&lt;br&gt;
Otherwise, you might be able to genrate a matrix out of your 4 pulses and treat it in one loop, but I'm not sure it would be cleaner.</description>
    </item>
  </channel>
</rss>

