<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Copy with Matlab' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Copy with Matlab' posted on the 'Matlab' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 00:23:13 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 00:23:13 -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>Copy with Matlab</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/428861/428861/copy-with-matlab/</link>
      <description>Hi!&lt;br /&gt;
I have this problem: I have a big data list in .txt file, with three columns and various lines; a variable number of lines constitutes a series.&lt;br /&gt;
At the end of each series, there is a blank line. Then another series starts.&lt;br /&gt;
&lt;br /&gt;
i.e.&lt;br /&gt;
20 23 103&lt;br /&gt;
98 23 92&lt;br /&gt;
22 11 118&lt;br /&gt;
&lt;br /&gt;
15 15 22&lt;br /&gt;
11 33 33 &lt;br /&gt;
55 55 55&lt;br /&gt;
98 22 22&lt;br /&gt;
&lt;br /&gt;
43 44 23&lt;br /&gt;
33 33 44&lt;br /&gt;
&lt;br /&gt;
...and so on.&lt;br /&gt;
I would like to copy each series near the previous series. &lt;br /&gt;
The copy of each series should end when it reaches the blank line.&lt;br /&gt;
&lt;br /&gt;
i.e.&lt;br /&gt;
20 23 103 15 15 22 43 44 23&lt;br /&gt;
98 23 92 11 33 33 33 33 44&lt;br /&gt;
22 11 118 55 55 55 &lt;br /&gt;
98 22 22&lt;br /&gt;
&lt;br /&gt;
I have a Macro doing this in Excel...&lt;br /&gt;
&lt;br /&gt;
Sub mergeline()&lt;br /&gt;
Dim OutSh As Worksheet, DataSh As Worksheet&lt;br /&gt;
Dim I As Long, IBlkC As Long, BlkLen As Long&lt;br /&gt;
'&lt;br /&gt;
Set OutSh = ThisWorkbook.Sheets("Merge") '&amp;lt;&amp;lt; Il foglio dove si costruisce l' output&lt;br /&gt;
Set DataSh = ThisWorkbook.Sheets("Foglio1") '&amp;lt;&amp;lt; Il foglio con i dati di partenza&lt;br /&gt;
datacell = "A2" '&amp;lt;&amp;lt; La cella da cui partono i dati&lt;br /&gt;
'&lt;br /&gt;
OutSh.Cells.ClearContents&lt;br /&gt;
For I = 1 To DataSh.Cells(Rows.Count, Range(datacell).Column).End(xlUp).Row&lt;br /&gt;
If DataSh.Range(datacell).Offset(I - 1, 0) = "" Then&lt;br /&gt;
IBlkC = 0&lt;br /&gt;
Else&lt;br /&gt;
DataSh.Range(datacell).Offset(I - 1, 0).Resize(1, Application. _&lt;br /&gt;
WorksheetFunction.CountA(DataSh.Range(datacell).Of
fset(I - 1, 0).EntireRow)).Copy _&lt;br /&gt;
Destination:=OutSh.Range(datacell).Offset(IBlkC, Application.WorksheetFunction. _&lt;br /&gt;
CountA(OutSh.Range(datacell).Offset(IBlkC, 0).Resize(1, Columns.Count - 5)))&lt;br /&gt;
IBlkC = IBlkC + 1&lt;br /&gt;
End If&lt;br /&gt;
Next I&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
...but I would like to do it in Matlab.&lt;br /&gt;
Any idea?&lt;br /&gt;
Thank you,&lt;br /&gt;
&lt;br /&gt;
Ale&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/428861/428861/copy-with-matlab/</guid>
      <pubDate>Wed, 20 Jun 2012 02:54:16 -0700</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>Re: Copy with Matlab</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/428861/428962/re-copy-with-matlab/#428962</link>
      <description>MATLAB a numerical computing programming language being heavily used nowadays. If you are worried about your MATLAB assignments and final year projects? We have been providing MATLAB based assistance to students from various universities in graduate and undergraduate level. We provide high quality MATLAB projects &amp;amp; assignment help for students in universities of UK, USA, Australia, India, Dubai, KSA , Canada and several European countries at reasonable rates. Our assignments guarantee maximum grades, we not only make assignments, and we tutor the students as well so that next time they try themselves. We believe in sharing knowledge and enabling students to facilitate with maximum knowledge and quality work. Visit our website at&lt;br /&gt;
www.makeyourassignment.com&lt;br /&gt;
makeyourassignment@gmail.com&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/428861/428962/re-copy-with-matlab/#428962</guid>
      <pubDate>Thu, 28 Jun 2012 01:42:01 -0700</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>Re: Copy with Matlab</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/428861/428970/re-copy-with-matlab/#428970</link>
      <description>MATLAB a numerical computing programming language being heavily used nowadays. If you are worried about your MATLAB assignments and final year projects? We have been providing MATLAB based assistance to students from various universities in graduate and undergraduate level. We provide high quality MATLAB projects &amp;amp; assignment help for students in universities of UK, USA, Australia, India, Dubai, KSA , Canada and several European countries at reasonable rates. Our assignments guarantee maximum grades, we not only make assignments, and we tutor the students as well so that next time they try themselves. We believe in sharing knowledge and enabling students to facilitate with maximum knowledge and quality work. Visit our website at&lt;br /&gt;
www.makeyourassignment.com&lt;br /&gt;
makeyourassignment@gmail.com&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ctocplusplustomatlab/428861/428970/re-copy-with-matlab/#428970</guid>
      <pubDate>Thu, 28 Jun 2012 05:27:07 -0700</pubDate>
      <category>Matlab</category>
    </item>
  </channel>
</rss>