<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'beginner's IF construction problem' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'beginner's IF construction problem' posted on the 'Matlab' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 21:44:59 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 21:44:59 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>beginner's IF construction problem</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/429170/429170/beginners-if-construction-problem/</link>
      <description>Hello&lt;br /&gt;
&lt;br /&gt;
this is what I'm trying to do:&lt;br /&gt;
&lt;br /&gt;
1. A particle moves in a straight line for 40 s. T
he velocity as a function of time is:  (example)&lt;br /&gt;
&lt;br /&gt;
t&amp;lt;10&lt;br /&gt;
  v = 2*t&lt;br /&gt;
&lt;br /&gt;
10&amp;lt;=t&amp;lt;=25&lt;br /&gt;
  v = 1.5*t&lt;br /&gt;
&lt;br /&gt;
25&amp;lt;t&amp;lt;=35&lt;br /&gt;
 v = 2*t - 20&lt;br /&gt;
&lt;br /&gt;
35&amp;lt;t&amp;lt;=40&lt;br /&gt;
 v = 10&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Create  an M‐file  that  calculates  the  velocity  as  function  of  time  and  plots  the velocity with time. Use &lt;strong&gt;if&lt;/strong&gt; construct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It's just a question from a textbook for beginners.&lt;br /&gt;
What I'm trying to do so far is to declare t = 0:0.1:40 before running the IF, which is not working because whenever I write if t&amp;lt;10  v = 1.4.*t I'm telling the program that when that condition is complied it should multiply 1.4 to the whole "array" t.&lt;br /&gt;
&lt;br /&gt;
I appreciate any help,&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/429170/429170/beginners-if-construction-problem/</guid>
      <pubDate>Fri, 10 Aug 2012 20:21:10 -0700</pubDate>
      <category>Matlab</category>
    </item>
  </channel>
</rss>