<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236479</link>
    <title>MATLAB Central Newsreader - Downsampling with fixed intervals</title>
    <description>Feed for thread: Downsampling with fixed intervals</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, 24 Sep 2008 11:50:03 -0400</pubDate>
      <title>Downsampling with fixed intervals</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236479#601851</link>
      <author>Wolfgang Schwanghart</author>
      <description>Dear all,&lt;br&gt;
&lt;br&gt;
I am searching for a function that can perform following:&lt;br&gt;
&lt;br&gt;
I have coastline data where the vertices are unequally spaced. Now I want to sample the data in a way, that may be best described as going with a rod of specified length along the beach and taking a gps measurement at every length of my measuring rod. What I finally want is the list of measured coordinates. What this requires is &quot;of course&quot; an interpolation scheme that may be e.g. linear or spline.&lt;br&gt;
&lt;br&gt;
Does anyone know, if there is a function available, that can perform this. So far I couldn't find anything in the FEX nor in the Matlab Help.&lt;br&gt;
&lt;br&gt;
Best regards,&lt;br&gt;
Wolfgang</description>
    </item>
    <item>
      <pubDate>Wed, 24 Sep 2008 12:10:04 -0400</pubDate>
      <title>Re: Downsampling with fixed intervals</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236479#601854</link>
      <author>John D'Errico</author>
      <description>&quot;Wolfgang Schwanghart&quot; &amp;lt;schwanghart@googlemail.com&amp;gt; wrote in message &amp;lt;gbd9hb$9u$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Dear all,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am searching for a function that can perform following:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have coastline data where the vertices are unequally spaced. Now I want to sample the data in a way, that may be best described as going with a rod of specified length along the beach and taking a gps measurement at every length of my measuring rod. What I finally want is the list of measured coordinates. What this requires is &quot;of course&quot; an interpolation scheme that may be e.g. linear or spline.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Does anyone know, if there is a function available, that can perform this. So far I couldn't find anything in the FEX nor in the Matlab Help.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
No, you will not find anything that does this&lt;br&gt;
explicitly, although one could write it without&lt;br&gt;
too severe mental anguish.&lt;br&gt;
&lt;br&gt;
Assume that you have a curve defined by a&lt;br&gt;
sequence of points in the (x,y) plane. The&lt;br&gt;
curve may be piecewise linear, or it may be&lt;br&gt;
a parametric spline, defined in terms of a&lt;br&gt;
piecewise linear arclength along the curve.&lt;br&gt;
&lt;br&gt;
Start at the beginning of the curve. Find the&lt;br&gt;
(first) intersection of your curve and a circle&lt;br&gt;
with center at the start point. Step along&lt;br&gt;
said curve, solving a sequence of root&lt;br&gt;
finding problems along the way.&lt;br&gt;
&lt;br&gt;
You might use the intersections tool, written&lt;br&gt;
by Doug Schwarz and on the file exchange.&lt;br&gt;
It will require you to define the initial curve&lt;br&gt;
as a piecewise linear one, and then to&lt;br&gt;
approximate your circle using a piecewise&lt;br&gt;
linear, polygonal approximation to a circle.&lt;br&gt;
But doing so will then be a very fast way to&lt;br&gt;
solve your problem.&lt;br&gt;
&lt;br&gt;
The only issue that you must deal with,&lt;br&gt;
regardless of how you choose to solve the&lt;br&gt;
problem, is if the coastline is so tightly&lt;br&gt;
convoluted that these convolutions are&lt;br&gt;
smaller than the length of your ruler. But&lt;br&gt;
in that case, it just means that your ruler&lt;br&gt;
is way too long for this problem.&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Wed, 24 Sep 2008 12:30:06 -0400</pubDate>
      <title>Re: Downsampling with fixed intervals</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236479#601860</link>
      <author>Wolfgang Schwanghart</author>
      <description>Thanks for your reply, John. I think, I'll try it your way. I just wanted to be sure that something like this is not already available and I'd waste time on something others could do better.&lt;br&gt;
&lt;br&gt;
Best regards,&lt;br&gt;
Wolfgang&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; No, you will not find anything that does this&lt;br&gt;
&amp;gt; explicitly, although one could write it without&lt;br&gt;
&amp;gt; too severe mental anguish.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Assume that you have a curve defined by a&lt;br&gt;
&amp;gt; sequence of points in the (x,y) plane. The&lt;br&gt;
&amp;gt; curve may be piecewise linear, or it may be&lt;br&gt;
&amp;gt; a parametric spline, defined in terms of a&lt;br&gt;
&amp;gt; piecewise linear arclength along the curve.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Start at the beginning of the curve. Find the&lt;br&gt;
&amp;gt; (first) intersection of your curve and a circle&lt;br&gt;
&amp;gt; with center at the start point. Step along&lt;br&gt;
&amp;gt; said curve, solving a sequence of root&lt;br&gt;
&amp;gt; finding problems along the way.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You might use the intersections tool, written&lt;br&gt;
&amp;gt; by Doug Schwarz and on the file exchange.&lt;br&gt;
&amp;gt; It will require you to define the initial curve&lt;br&gt;
&amp;gt; as a piecewise linear one, and then to&lt;br&gt;
&amp;gt; approximate your circle using a piecewise&lt;br&gt;
&amp;gt; linear, polygonal approximation to a circle.&lt;br&gt;
&amp;gt; But doing so will then be a very fast way to&lt;br&gt;
&amp;gt; solve your problem.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The only issue that you must deal with,&lt;br&gt;
&amp;gt; regardless of how you choose to solve the&lt;br&gt;
&amp;gt; problem, is if the coastline is so tightly&lt;br&gt;
&amp;gt; convoluted that these convolutions are&lt;br&gt;
&amp;gt; smaller than the length of your ruler. But&lt;br&gt;
&amp;gt; in that case, it just means that your ruler&lt;br&gt;
&amp;gt; is way too long for this problem.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; HTH,&lt;br&gt;
&amp;gt; John</description>
    </item>
    <item>
      <pubDate>Mon, 10 Nov 2008 16:09:02 -0500</pubDate>
      <title>Re: Downsampling with fixed intervals</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236479#610065</link>
      <author>Dave Brackett</author>
      <description>Did you get some code to do this Wolfgang? I am trying to do something fairly similar so would be interested in seeing how you did it if so. &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Wolfgang Schwanghart&quot; &amp;lt;schwanghart@googlemail.com&amp;gt; wrote in message &amp;lt;gbdbse$kh9$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Thanks for your reply, John. I think, I'll try it your way. I just wanted to be sure that something like this is not already available and I'd waste time on something others could do better.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Best regards,&lt;br&gt;
&amp;gt; Wolfgang&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; No, you will not find anything that does this&lt;br&gt;
&amp;gt; &amp;gt; explicitly, although one could write it without&lt;br&gt;
&amp;gt; &amp;gt; too severe mental anguish.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Assume that you have a curve defined by a&lt;br&gt;
&amp;gt; &amp;gt; sequence of points in the (x,y) plane. The&lt;br&gt;
&amp;gt; &amp;gt; curve may be piecewise linear, or it may be&lt;br&gt;
&amp;gt; &amp;gt; a parametric spline, defined in terms of a&lt;br&gt;
&amp;gt; &amp;gt; piecewise linear arclength along the curve.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Start at the beginning of the curve. Find the&lt;br&gt;
&amp;gt; &amp;gt; (first) intersection of your curve and a circle&lt;br&gt;
&amp;gt; &amp;gt; with center at the start point. Step along&lt;br&gt;
&amp;gt; &amp;gt; said curve, solving a sequence of root&lt;br&gt;
&amp;gt; &amp;gt; finding problems along the way.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; You might use the intersections tool, written&lt;br&gt;
&amp;gt; &amp;gt; by Doug Schwarz and on the file exchange.&lt;br&gt;
&amp;gt; &amp;gt; It will require you to define the initial curve&lt;br&gt;
&amp;gt; &amp;gt; as a piecewise linear one, and then to&lt;br&gt;
&amp;gt; &amp;gt; approximate your circle using a piecewise&lt;br&gt;
&amp;gt; &amp;gt; linear, polygonal approximation to a circle.&lt;br&gt;
&amp;gt; &amp;gt; But doing so will then be a very fast way to&lt;br&gt;
&amp;gt; &amp;gt; solve your problem.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; The only issue that you must deal with,&lt;br&gt;
&amp;gt; &amp;gt; regardless of how you choose to solve the&lt;br&gt;
&amp;gt; &amp;gt; problem, is if the coastline is so tightly&lt;br&gt;
&amp;gt; &amp;gt; convoluted that these convolutions are&lt;br&gt;
&amp;gt; &amp;gt; smaller than the length of your ruler. But&lt;br&gt;
&amp;gt; &amp;gt; in that case, it just means that your ruler&lt;br&gt;
&amp;gt; &amp;gt; is way too long for this problem.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; HTH,&lt;br&gt;
&amp;gt; &amp;gt; John</description>
    </item>
  </channel>
</rss>

