<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Run different cases at the same time' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Run different cases at the same time' posted on the 'Matlab' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 23:37:40 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 23:37:40 -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>Run different cases at the same time</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/430809/430809/run-different-cases-at-the-same-time/</link>
      <description>Hi, I'm new to programming and Matlab. I need to make changes to a matlab file. It's a programming analyzing data from different participants in an experiment. The existing programm is written in switch-case, when you key in case 1, it'll just run case 1 for data by participant 1, and it'll show 3 graphs. Now I need to change it to be running 5 cases at the same time and show me 15 graphs at the same time, 3 for each participant. Could anyone help me with it ?&lt;br /&gt;
&lt;br /&gt;
Let me post that part of the programming here. case 99 is to analyze all the data from all participants and will show 3 graphs.&lt;br /&gt;
 &lt;br /&gt;
diff = 20; % 30 degree, 0 degree of difference between the 2nd and 3rd digit&lt;br /&gt;
subject_no = 1;  % 1.ytc  2.ysy  3.ypy  4.ang 5.yhh 6.yty 　  99.pooling data&lt;br /&gt;
 &lt;br /&gt;
switch subject_no  &lt;br /&gt;
    case 1&lt;br /&gt;
        subj={'ytc'};&lt;br /&gt;
        trial_num = [1 2 3 4 5];&lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
    case 2   &lt;br /&gt;
        subj={'ysy'};&lt;br /&gt;
        trial_num = [ 1 2 3 4 5];&lt;br /&gt;
    case 3  &lt;br /&gt;
        subj={'ypy'};&lt;br /&gt;
        trial_num = [1 2 3 4 5];&lt;br /&gt;
        &lt;br /&gt;
    case 4  &lt;br /&gt;
        subj={'ang'};&lt;br /&gt;
        trial_num = [ 1 2 3 4 5 ];&lt;br /&gt;
                &lt;br /&gt;
    case 5  &lt;br /&gt;
        subj={'yhh'};&lt;br /&gt;
        trial_num = [ 1 2 3 4 5];  &lt;br /&gt;
        &lt;br /&gt;
    case 6   &lt;br /&gt;
        subj={'yty'};&lt;br /&gt;
        trial_num = [ 1 2 3 4 5];&lt;br /&gt;
        &lt;br /&gt;
      &lt;br /&gt;
    case 99 % pool 'ysy' 'ytc' 'yty' 'ypy' 'yhh' 'ang'&lt;br /&gt;
        subj={ 'ysy' 'ytc' 'yty' 'ypy' 'yhh' 'ang' };&lt;br /&gt;
        trial_num = [ 1 2 3 4 5];&lt;br /&gt;
      &lt;br /&gt;
end</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/430809/430809/run-different-cases-at-the-same-time/</guid>
      <pubDate>Thu, 03 Jan 2013 18:34:32 -0700</pubDate>
      <category>Matlab</category>
    </item>
  </channel>
</rss>