<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'MATLAB LOADING DATA FROM A .TXT FILE' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'MATLAB LOADING DATA FROM A .TXT FILE' posted on the 'Matlab' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 13:46:51 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 13:46:51 -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>MATLAB LOADING DATA FROM A .TXT FILE</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/408647/408647/matlab-loading-data-from-a-txt-file/</link>
      <description>MATLAB LOADING DATA FROM A .TXT FILE?&lt;br /&gt;
&lt;br /&gt;
Please I need some help with this to finish my thesis.&lt;br /&gt;
 &lt;br /&gt;
I tried to load the solution.txt file in MATLAB, but i have been &lt;br /&gt;
unable to do it because it sais that there is a format problem &lt;br /&gt;
with the first rows, however i only need to load the rows 6 to 9 from the file &lt;br /&gt;
wich have a recognazible format and can be loaded with the textread function&lt;br /&gt;
&lt;br /&gt;
The solution.txt file has the following data:&lt;br /&gt;
&lt;br /&gt;
        OBJECTIVE FUNCTION VALUE&lt;br /&gt;
&lt;br /&gt;
        1)      3942307.    &lt;br /&gt;
&lt;br /&gt;
  VARIABLE        VALUE      REDUCED COST&lt;br /&gt;
     UI001         0.02     -96876.960938&lt;br /&gt;
     UI002         0.06     359612.000000&lt;br /&gt;
     UI003         0.01     392966.000000&lt;br /&gt;
     UI004         0.05     392966.000000&lt;br /&gt;
&lt;br /&gt;
       ROW   SLACK OR SURPLUS     DUAL PRICES&lt;br /&gt;
        2)         0.000000        -30.976025&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I only need to load rows 6 to 9, without changing in any way the solution.txt file.&lt;br /&gt;
The data i need would be:&lt;br /&gt;
&lt;br /&gt;
     UI001         0.02     -96876.960938&lt;br /&gt;
     UI002         0.06     359612.000000&lt;br /&gt;
     UI003         0.01     392966.000000&lt;br /&gt;
     UI004         0.05     392966.000000&lt;br /&gt;
&lt;br /&gt;
Could someone please tell me what function can i use to load the solution.txt file&lt;br /&gt;
but delimited only to the rows 6 to 9?&lt;br /&gt;
&lt;br /&gt;
Thank you&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/408647/408647/matlab-loading-data-from-a-txt-file/</guid>
      <pubDate>Sat, 31 Oct 2009 15:37:52 -0700</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>Re: MATLAB LOADING DATA FROM A .TXT FILE</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/408647/408651/re-matlab-loading-data-from-a-txt-file/#408651</link>
      <description>use the parameter 'headerLines' within the textscan function.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
data1 = textscan(fopen(...), '%f %f %f', 'headerLines', 6)&lt;br /&gt;
The '6' means to skip the first 6 lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Learn Matlab here!&lt;br /&gt;
&lt;a href="http://www.matrixlab-examples.com"&gt;http://www.matrixlab-examples.com&lt;/a&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/408647/408651/re-matlab-loading-data-from-a-txt-file/#408651</guid>
      <pubDate>Sat, 31 Oct 2009 17:30:51 -0700</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>Re: MATLAB LOADING DATA FROM A .TXT FILE</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/408647/409857/re-matlab-loading-data-from-a-txt-file/#409857</link>
      <description>Hello &lt;br /&gt;
&lt;br /&gt;
I have a problem in matlab. I would like to read a .txt file like this&lt;br /&gt;
  5)           3                    368ms&lt;br /&gt;
  6)           1&lt;br /&gt;
  7)           6&lt;br /&gt;
  8)           1&lt;br /&gt;
  9)           4&lt;br /&gt;
 10)           1                     *&lt;br /&gt;
 11)           6                     *&lt;br /&gt;
 12)           1                     *&lt;br /&gt;
 13)           2&lt;br /&gt;
 14)           1&lt;br /&gt;
 15)           6                    410ms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
the problem is that the data i want to read and write them in another file (only the third column) and in the third column where there is a space to write 0 and where is * to put -1 and from 410ms to keep only 410, the number.&lt;br /&gt;
&lt;br /&gt;
Please help,&lt;br /&gt;
I am trying one week now&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/408647/409857/re-matlab-loading-data-from-a-txt-file/#409857</guid>
      <pubDate>Wed, 25 Nov 2009 09:55:10 -0700</pubDate>
      <category>Matlab</category>
    </item>
  </channel>
</rss>
