<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891</link>
    <title>MATLAB Central Newsreader - how to make rows and columns from excel files? please help</title>
    <description>Feed for thread: how to make rows and columns from excel files? please help</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>Wed, 04 Nov 2009 01:14:03 -0500</pubDate>
      <title>how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#691889</link>
      <author>rohan patel</author>
      <description>'Game'         'January'    'February'    'March'    'April'    'May'      'June' &lt;br&gt;
&amp;nbsp;'iKitty'            75]         254           1235     1820      2114     1600&lt;br&gt;
'ShootEmUp'   3584]     4588          9421     10588    12788    16889&lt;br&gt;
&lt;br&gt;
okay i have this. i know how to put in rows and columns for iKitty and ShootemUP.&lt;br&gt;
&lt;br&gt;
[numbers, text, everything] = xlsread(fileName);&lt;br&gt;
&lt;br&gt;
iKitty = numbers(1,:);&lt;br&gt;
shootEmUp = numbers(2,:);&lt;br&gt;
&lt;br&gt;
but i need to figure out how if there was more data add(such as new game) how can i use a for loop to put everything in row and columns?</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 02:19:23 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#691893</link>
      <author>TideMan</author>
      <description>On Nov 4, 2:14&#160;pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; 'Game' &#160; &#160; &#160; &#160; 'January' &#160; &#160;'February' &#160; &#160;'March' &#160; &#160;'April' &#160; &#160;'May' &#160; &#160; &#160;'June'&lt;br&gt;
&amp;gt; &#160;'iKitty' &#160; &#160; &#160; &#160; &#160; &#160;75] &#160; &#160; &#160; &#160; 254 &#160; &#160; &#160; &#160; &#160; 1235 &#160; &#160; 1820 &#160; &#160; &#160;2114 &#160; &#160; 1600&lt;br&gt;
&amp;gt; 'ShootEmUp' &#160; 3584] &#160; &#160; 4588 &#160; &#160; &#160; &#160; &#160;9421 &#160; &#160; 10588 &#160; &#160;12788 &#160; &#160;16889&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; okay i have this. i know how to put in rows and columns for iKitty and ShootemUP.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; [numbers, text, everything] = xlsread(fileName);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; iKitty = numbers(1,:);&lt;br&gt;
&amp;gt; shootEmUp = numbers(2,:);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; but i need to figure out how if there was more data add(such as new game) how can i use a for loop to put everything in row and columns?&lt;br&gt;
&lt;br&gt;
One solution is to use a structure:&lt;br&gt;
[ngames,nmonths]=size(numbers);&lt;br&gt;
for igame=1:ngames&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;Game.(text{igame+1,1})=numbers(igame,:);&lt;br&gt;
end</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 02:33:01 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#691895</link>
      <author>ade77 </author>
      <description>do you insist that the name of the variable must be the name of the game. That is the variables must be named iKitty, ShootEmUp etc, that will mean trying to convert a string or char into the name of a variable.&lt;br&gt;
That is the only issue with this problem, which I am not sure how to do. Otherwise, there are many ways , like what the last poster did.&lt;br&gt;
&lt;br&gt;
If the user can name the games whatever variable, then it will be much easier. Of course there must be a way around it, I am not just sure how to go about it.&lt;br&gt;
&lt;br&gt;
&quot;rohan patel&quot; &amp;lt;rpatel133@live.com&amp;gt; wrote in message &amp;lt;hcqkgq$n9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; 'Game'         'January'    'February'    'March'    'April'    'May'      'June' &lt;br&gt;
&amp;gt;  'iKitty'            75]         254           1235     1820      2114     1600&lt;br&gt;
&amp;gt; 'ShootEmUp'   3584]     4588          9421     10588    12788    16889&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; okay i have this. i know how to put in rows and columns for iKitty and ShootemUP.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [numbers, text, everything] = xlsread(fileName);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; iKitty = numbers(1,:);&lt;br&gt;
&amp;gt; shootEmUp = numbers(2,:);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; but i need to figure out how if there was more data add(such as new game) how can i use a for loop to put everything in row and columns?</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 04:27:01 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#691904</link>
      <author>rohan patel</author>
      <description>TideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message &amp;lt;09f4f3a9-b4b9-47ea-b907-c00fb7e9d1fe@m3g2000pri.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Nov 4, 2:14?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; 'Game' ? ? ? ? 'January' ? ?'February' ? ?'March' ? ?'April' ? ?'May' ? ? ?'June'&lt;br&gt;
&amp;gt; &amp;gt; ?'iKitty' ? ? ? ? ? ?75] ? ? ? ? 254 ? ? ? ? ? 1235 ? ? 1820 ? ? ?2114 ? ? 1600&lt;br&gt;
&amp;gt; &amp;gt; 'ShootEmUp' ? 3584] ? ? 4588 ? ? ? ? ?9421 ? ? 10588 ? ?12788 ? ?16889&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; okay i have this. i know how to put in rows and columns for iKitty and ShootemUP.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; [numbers, text, everything] = xlsread(fileName);&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; iKitty = numbers(1,:);&lt;br&gt;
&amp;gt; &amp;gt; shootEmUp = numbers(2,:);&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; but i need to figure out how if there was more data add(such as new game) how can i use a for loop to put everything in row and columns?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; One solution is to use a structure:&lt;br&gt;
&amp;gt; [ngames,nmonths]=size(numbers);&lt;br&gt;
&amp;gt; for igame=1:ngames&lt;br&gt;
&amp;gt;    Game.(text{igame+1,1})=numbers(igame,:);&lt;br&gt;
&amp;gt; end&lt;br&gt;
&lt;br&gt;
okay i done this but if i add another game application to the data sheet will it create rows and columns for that also?&lt;br&gt;
and &lt;br&gt;
i have another problem i want to find the total number of quantity sold in for each game so how would i for loop it to add to get results?</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 04:45:20 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#691907</link>
      <author>ade77 </author>
      <description>Actually, the code below will do the job for you, not only  will it find all the rows, it will also give the actual name of the string like ikitty, ShootEmUp etc&lt;br&gt;
&lt;br&gt;
[numbers, text] = xlsread('your excel file');&lt;br&gt;
u = size(text);&lt;br&gt;
&amp;nbsp;for i = 2:u     &lt;br&gt;
V = genvarname(text{i,1});&lt;br&gt;
eval([V '= numbers(i-1,:);']);&lt;br&gt;
&amp;nbsp;end&lt;br&gt;
clear V u i  numbers text      % you can remove this last line if you like.&lt;br&gt;
&lt;br&gt;
The last line of code is just to free memory. The only thing you will have left is your game variables and the associated arrays.</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 05:29:03 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#691912</link>
      <author>rohan patel</author>
      <description>&quot;ade77 &quot; &amp;lt;ade100a@gmail.com&amp;gt; wrote in message &amp;lt;hcr0t0$8r2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Actually, the code below will do the job for you, not only  will it find all the rows, it will also give the actual name of the string like ikitty, ShootEmUp etc&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [numbers, text] = xlsread('your excel file');&lt;br&gt;
&amp;gt; u = size(text);&lt;br&gt;
&amp;gt;  for i = 2:u     &lt;br&gt;
&amp;gt; V = genvarname(text{i,1});&lt;br&gt;
&amp;gt; eval([V '= numbers(i-1,:);']);&lt;br&gt;
&amp;gt;  end&lt;br&gt;
&amp;gt; clear V u i  numbers text      % you can remove this last line if you like.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The last line of code is just to free memory. The only thing you will have left is your game variables and the associated arrays.&lt;br&gt;
&lt;br&gt;
okay, thanks, but now i have another problem i want to find the total number of quantity sold in for each game so how would i &quot;for loop&quot; it to add to get results for each game? </description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 07:16:59 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#691945</link>
      <author>TideMan</author>
      <description>On Nov 4, 5:27&#160;pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; TideMan &amp;lt;mul...@gmail.com&amp;gt; wrote in message &amp;lt;09f4f3a9-b4b9-47ea-b907-c00fb7e9d...@m3g2000pri.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; On Nov 4, 2:14?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 'Game' ? ? ? ? 'January' ? ?'February' ? ?'March' ? ?'April' ? ?'May' ? ? ?'June'&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; ?'iKitty' ? ? ? ? ? ?75] ? ? ? ? 254 ? ? ? ? ? 1235 ? ? 1820 ? ? ?2114 ? ? 1600&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 'ShootEmUp' ? 3584] ? ? 4588 ? ? ? ? ?9421 ? ? 10588 ? ?12788 ? ?16889&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; okay i have this. i know how to put in rows and columns for iKitty and ShootemUP.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; [numbers, text, everything] = xlsread(fileName);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; iKitty = numbers(1,:);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; shootEmUp = numbers(2,:);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; but i need to figure out how if there was more data add(such as new game) how can i use a for loop to put everything in row and columns?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; One solution is to use a structure:&lt;br&gt;
&amp;gt; &amp;gt; [ngames,nmonths]=size(numbers);&lt;br&gt;
&amp;gt; &amp;gt; for igame=1:ngames&lt;br&gt;
&amp;gt; &amp;gt; &#160; &#160;Game.(text{igame+1,1})=numbers(igame,:);&lt;br&gt;
&amp;gt; &amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; okay i done this but if i add another game application to the data sheet will it create rows and columns for that also?&lt;br&gt;
&amp;gt; and&lt;br&gt;
&amp;gt; i have another problem i want to find the total number of quantity sold in for each game so how would i for loop it to add to get results?&lt;br&gt;
&lt;br&gt;
Yes, my method will expand as you add extra rows.&lt;br&gt;
Please do not listen to posters who suggest that you use the eval&lt;br&gt;
function.&lt;br&gt;
It is an evil function that will lead to you to unhappiness.</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 07:20:09 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#691946</link>
      <author>TideMan</author>
      <description>On Nov 4, 5:45&#160;pm, &quot;ade77 &quot; &amp;lt;ade1...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Actually, the code below will do the job for you, not only &#160;will it find all the rows, it will also give the actual name of the string like ikitty, ShootEmUp etc&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; [numbers, text] = xlsread('your excel file');&lt;br&gt;
&amp;gt; u = size(text);&lt;br&gt;
&amp;gt; &#160;for i = 2:u &#160; &#160;&lt;br&gt;
&amp;gt; V = genvarname(text{i,1});&lt;br&gt;
&amp;gt; eval([V '= numbers(i-1,:);']);&lt;br&gt;
&amp;gt; &#160;end&lt;br&gt;
&amp;gt; clear V u i &#160;numbers text &#160; &#160; &#160;% you can remove this last line if you like.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The last line of code is just to free memory. The only thing you will have left is your game variables and the associated arrays.&lt;br&gt;
&lt;br&gt;
Please do not top post.  It makes the thread hard to follow.  Put your&lt;br&gt;
reply UNDERNEATH.&lt;br&gt;
&lt;br&gt;
You are out of order suggesting eval to a newbie.&lt;br&gt;
It is exactly the wrong way to do things.</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 19:32:03 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#692167</link>
      <author>rohan patel</author>
      <description>TideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message &amp;lt;36c3a68d-10d9-4573-bf0c-6a60ef50eaa6@g23g2000yqh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Nov 4, 5:27?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; TideMan &amp;lt;mul...@gmail.com&amp;gt; wrote in message &amp;lt;09f4f3a9-b4b9-47ea-b907-c00fb7e9d...@m3g2000pri.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; On Nov 4, 2:14?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 'Game' ? ? ? ? 'January' ? ?'February' ? ?'March' ? ?'April' ? ?'May' ? ? ?'June'&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; ?'iKitty' ? ? ? ? ? ?75] ? ? ? ? 254 ? ? ? ? ? 1235 ? ? 1820 ? ? ?2114 ? ? 1600&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 'ShootEmUp' ? 3584] ? ? 4588 ? ? ? ? ?9421 ? ? 10588 ? ?12788 ? ?16889&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; okay i have this. i know how to put in rows and columns for iKitty and ShootemUP.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; [numbers, text, everything] = xlsread(fileName);&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; iKitty = numbers(1,:);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; shootEmUp = numbers(2,:);&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; but i need to figure out how if there was more data add(such as new game) how can i use a for loop to put everything in row and columns?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; One solution is to use a structure:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; [ngames,nmonths]=size(numbers);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; for igame=1:ngames&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; ? ?Game.(text{igame+1,1})=numbers(igame,:);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; end&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; okay i done this but if i add another game application to the data sheet will it create rows and columns for that also?&lt;br&gt;
&amp;gt; &amp;gt; and&lt;br&gt;
&amp;gt; &amp;gt; i have another problem i want to find the total number of quantity sold in for each game so how would i for loop it to add to get results?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yes, my method will expand as you add extra rows.&lt;br&gt;
&amp;gt; Please do not listen to posters who suggest that you use the eval&lt;br&gt;
&amp;gt; function.&lt;br&gt;
&amp;gt; It is an evil function that will lead to you to unhappiness.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Tideman, okay i got this. but now my problem is i need to add the rows to get the total quantity for that game. how can i do this without using the sum fuction. </description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 19:58:02 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#692176</link>
      <author>rohan patel</author>
      <description>TideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message &amp;lt;36c3a68d-10d9-4573-bf0c-6a60ef50eaa6@g23g2000yqh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Nov 4, 5:27?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; TideMan &amp;lt;mul...@gmail.com&amp;gt; wrote in message &amp;lt;09f4f3a9-b4b9-47ea-b907-c00fb7e9d...@m3g2000pri.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; On Nov 4, 2:14?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 'Game' ? ? ? ? 'January' ? ?'February' ? ?'March' ? ?'April' ? ?'May' ? ? ?'June'&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; ?'iKitty' ? ? ? ? ? ?75] ? ? ? ? 254 ? ? ? ? ? 1235 ? ? 1820 ? ? ?2114 ? ? 1600&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 'ShootEmUp' ? 3584] ? ? 4588 ? ? ? ? ?9421 ? ? 10588 ? ?12788 ? ?16889&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; okay i have this. i know how to put in rows and columns for iKitty and ShootemUP.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; [numbers, text, everything] = xlsread(fileName);&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; iKitty = numbers(1,:);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; shootEmUp = numbers(2,:);&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; but i need to figure out how if there was more data add(such as new game) how can i use a for loop to put everything in row and columns?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; One solution is to use a structure:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; [ngames,nmonths]=size(numbers);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; for igame=1:ngames&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; ? ?Game.(text{igame+1,1})=numbers(igame,:);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; end&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; okay i done this but if i add another game application to the data sheet will it create rows and columns for that also?&lt;br&gt;
&amp;gt; &amp;gt; and&lt;br&gt;
&amp;gt; &amp;gt; i have another problem i want to find the total number of quantity sold in for each game so how would i for loop it to add to get results?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yes, my method will expand as you add extra rows.&lt;br&gt;
&amp;gt; Please do not listen to posters who suggest that you use the eval&lt;br&gt;
&amp;gt; function.&lt;br&gt;
&amp;gt; It is an evil function that will lead to you to unhappiness.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Tideman, okay i got this. but now my problem is i need to add the rows to get the total quantity for that game. how can i do this without using the sum fuction. </description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 20:02:12 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#692178</link>
      <author>TideMan</author>
      <description>On Nov 5, 8:58&#160;am, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; TideMan &amp;lt;mul...@gmail.com&amp;gt; wrote in message &amp;lt;36c3a68d-10d9-4573-bf0c-6a60ef50e...@g23g2000yqh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; On Nov 4, 5:27?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; TideMan &amp;lt;mul...@gmail.com&amp;gt; wrote in message &amp;lt;09f4f3a9-b4b9-47ea-b907-c00fb7e9d...@m3g2000pri.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; On Nov 4, 2:14?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 'Game' ? ? ? ? 'January' ? ?'February' ? ?'March' ? ?'April' ? ?'May' ? ? ?'June'&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; ?'iKitty' ? ? ? ? ? ?75] ? ? ? ? 254 ? ? ? ? ? 1235 ? ? 1820 ? ? ?2114 ? ? 1600&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 'ShootEmUp' ? 3584] ? ? 4588 ? ? ? ? ?9421 ? ? 10588 ? ?12788 ? ?16889&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; okay i have this. i know how to put in rows and columns for iKitty and ShootemUP.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; [numbers, text, everything] = xlsread(fileName);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; iKitty = numbers(1,:);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; shootEmUp = numbers(2,:);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; but i need to figure out how if there was more data add(such as new game) how can i use a for loop to put everything in row and columns?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; One solution is to use a structure:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; [ngames,nmonths]=size(numbers);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; for igame=1:ngames&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; ? ?Game.(text{igame+1,1})=numbers(igame,:);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; okay i done this but if i add another game application to the data sheet will it create rows and columns for that also?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; and&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; i have another problem i want to find the total number of quantity sold in for each game so how would i for loop it to add to get results?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Yes, my method will expand as you add extra rows.&lt;br&gt;
&amp;gt; &amp;gt; Please do not listen to posters who suggest that you use the eval&lt;br&gt;
&amp;gt; &amp;gt; function.&lt;br&gt;
&amp;gt; &amp;gt; It is an evil function that will lead to you to unhappiness.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Tideman, okay i got this. but now my problem is i need to add the rows to get the total quantity for that game. how can i do this without using the sum fuction.&lt;br&gt;
&lt;br&gt;
Why would you want to do this without using the sum function?&lt;br&gt;
Is this homework?</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 22:11:02 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#692211</link>
      <author>rohan patel</author>
      <description>TideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message &amp;lt;c5f5c5f5-082a-445e-8cb0-ea3cfdfe314e@g1g2000pra.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Nov 5, 8:58?am, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; TideMan &amp;lt;mul...@gmail.com&amp;gt; wrote in message &amp;lt;36c3a68d-10d9-4573-bf0c-6a60ef50e...@g23g2000yqh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; On Nov 4, 5:27?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; TideMan &amp;lt;mul...@gmail.com&amp;gt; wrote in message &amp;lt;09f4f3a9-b4b9-47ea-b907-c00fb7e9d...@m3g2000pri.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; On Nov 4, 2:14?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 'Game' ? ? ? ? 'January' ? ?'February' ? ?'March' ? ?'April' ? ?'May' ? ? ?'June'&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; ?'iKitty' ? ? ? ? ? ?75] ? ? ? ? 254 ? ? ? ? ? 1235 ? ? 1820 ? ? ?2114 ? ? 1600&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 'ShootEmUp' ? 3584] ? ? 4588 ? ? ? ? ?9421 ? ? 10588 ? ?12788 ? ?16889&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; okay i have this. i know how to put in rows and columns for iKitty and ShootemUP.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; [numbers, text, everything] = xlsread(fileName);&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; iKitty = numbers(1,:);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; shootEmUp = numbers(2,:);&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; but i need to figure out how if there was more data add(such as new game) how can i use a for loop to put everything in row and columns?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; One solution is to use a structure:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; [ngames,nmonths]=size(numbers);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; for igame=1:ngames&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; ? ?Game.(text{igame+1,1})=numbers(igame,:);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; end&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; okay i done this but if i add another game application to the data sheet will it create rows and columns for that also?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; and&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; i have another problem i want to find the total number of quantity sold in for each game so how would i for loop it to add to get results?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Yes, my method will expand as you add extra rows.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Please do not listen to posters who suggest that you use the eval&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; function.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; It is an evil function that will lead to you to unhappiness.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Tideman, okay i got this. but now my problem is i need to add the rows to get the total quantity for that game. how can i do this without using the sum fuction.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Why would you want to do this without using the sum function?&lt;br&gt;
&amp;gt; Is this homework?&lt;br&gt;
&lt;br&gt;
Yes, my teacher is being mean =[ and im stressing out so much. please help me</description>
    </item>
    <item>
      <pubDate>Wed, 04 Nov 2009 22:40:45 -0500</pubDate>
      <title>Re: how to make rows and columns from excel files? please help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264891#692218</link>
      <author>TideMan</author>
      <description>On Nov 5, 11:11&#160;am, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; TideMan &amp;lt;mul...@gmail.com&amp;gt; wrote in message &amp;lt;c5f5c5f5-082a-445e-8cb0-ea3cfdfe3...@g1g2000pra.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; On Nov 5, 8:58?am, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; TideMan &amp;lt;mul...@gmail.com&amp;gt; wrote in message &amp;lt;36c3a68d-10d9-4573-bf0c-6a60ef50e...@g23g2000yqh.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; On Nov 4, 5:27?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; TideMan &amp;lt;mul...@gmail.com&amp;gt; wrote in message &amp;lt;09f4f3a9-b4b9-47ea-b907-c00fb7e9d...@m3g2000pri.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; On Nov 4, 2:14?pm, &quot;rohan patel&quot; &amp;lt;rpatel...@live.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 'Game' ? ? ? ? 'January' ? ?'February' ? ?'March' ? ?'April' ? ?'May' ? ? ?'June'&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; ?'iKitty' ? ? ? ? ? ?75] ? ? ? ? 254 ? ? ? ? ? 1235 ? ? 1820 ? ? ?2114 ? ? 1600&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 'ShootEmUp' ? 3584] ? ? 4588 ? ? ? ? ?9421 ? ? 10588 ? ?12788 ? ?16889&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; okay i have this. i know how to put in rows and columns for iKitty and ShootemUP.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; [numbers, text, everything] = xlsread(fileName);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; iKitty = numbers(1,:);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; shootEmUp = numbers(2,:);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; but i need to figure out how if there was more data add(such as new game) how can i use a for loop to put everything in row and columns?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; One solution is to use a structure:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; [ngames,nmonths]=size(numbers);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; for igame=1:ngames&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; ? ?Game.(text{igame+1,1})=numbers(igame,:);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; okay i done this but if i add another game application to the data sheet will it create rows and columns for that also?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; and&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; i have another problem i want to find the total number of quantity sold in for each game so how would i for loop it to add to get results?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Yes, my method will expand as you add extra rows.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Please do not listen to posters who suggest that you use the eval&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; function.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; It is an evil function that will lead to you to unhappiness.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Tideman, okay i got this. but now my problem is i need to add the rows to get the total quantity for that game. how can i do this without using the sum fuction.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Why would you want to do this without using the sum function?&lt;br&gt;
&amp;gt; &amp;gt; Is this homework?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Yes, my teacher is being mean =[ and im stressing out so much. please help me&lt;br&gt;
&lt;br&gt;
I've helped you enough already.&lt;br&gt;
You can work out how to add up numbers yourself.&lt;br&gt;
One way that doesn't use sum is:&lt;br&gt;
mean(numbers(igame,:)))*length(numbers(igame,:));&lt;br&gt;
but your teacher may think you're being a smartass.</description>
    </item>
  </channel>
</rss>

