<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/125789</link>
    <title>MATLAB Central Newsreader - 3D Mapping</title>
    <description>Feed for thread: 3D Mapping</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>Thu, 01 Jun 2006 16:11:05 -0400</pubDate>
      <title>3D Mapping</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/125789#316799</link>
      <author>Alicia Sanchez</author>
      <description>I need to plot a figure more or less like the one showed in the &quot;surf&lt;br&gt;
function&quot;. My problem is that I have 3 vectors of size Nx1, that&lt;br&gt;
indicate the x and y coordinates, and the other one the power value&lt;br&gt;
associated to that point (x,y).&lt;br&gt;
&lt;br&gt;
My problem is that I need to make some interpolation with the values&lt;br&gt;
that I have, in order to construct the surface to be respresented. In&lt;br&gt;
this picture is shown more or less the values that I've got. The x&#180;s&lt;br&gt;
represents a different value. So i need to cover the holes in between&lt;br&gt;
them, so I can draw a surface where the height (or color) indicates&lt;br&gt;
the value of the power.&lt;br&gt;
Any of you know how to solve this problem?&lt;br&gt;
&lt;br&gt;
|&lt;br&gt;
| x x&lt;br&gt;
| x x x x x x&lt;br&gt;
|xx x x x x x x&lt;br&gt;
|xx x x&lt;br&gt;
|x x x x x x x&lt;br&gt;
|_________________________</description>
    </item>
    <item>
      <pubDate>Thu, 01 Jun 2006 16:29:45 -0400</pubDate>
      <title>Re: 3D Mapping</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/125789#316804</link>
      <author>Perry</author>
      <description>If you need to fill the gaps in the third array (the power values)&lt;br&gt;
may I suggest 2 loops :&lt;br&gt;
&lt;br&gt;
For y = 1:n&lt;br&gt;
%=========================================&lt;br&gt;
% Outer loop control, for n rows&lt;br&gt;
%=========================================&lt;br&gt;
For x = 1:n&lt;br&gt;
%=========================================&lt;br&gt;
% Inner loop control, for n columns. I'm assuming you have as many&lt;br&gt;
columns as rows, and I assume an empty value is simply a [] in the&lt;br&gt;
power vector.&lt;br&gt;
%=========================================&lt;br&gt;
&lt;br&gt;
if isempty(power_vector(y,x))&lt;br&gt;
%==========================================&lt;br&gt;
% Perform some interpolation action&lt;br&gt;
% Example as below, but this assumes you no not have empty entries&lt;br&gt;
side by side !!&lt;br&gt;
%===========================================&lt;br&gt;
&lt;br&gt;
switch x&lt;br&gt;
&amp;nbsp;case {1,n}&lt;br&gt;
&amp;nbsp;%==================================================&lt;br&gt;
&amp;nbsp;% If beginning of end of row then cannot average between next higher&lt;br&gt;
and lower columns&lt;br&gt;
%==========================================================&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if x == 1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;power_vector(y,x) = power_vector(y,x+1); % As example fill&lt;br&gt;
with next higher value&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;power_vector(y,x) = power_vector(y,x-1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;end&lt;br&gt;
&lt;br&gt;
otherwise&lt;br&gt;
%===========================================&lt;br&gt;
% Average next higher and lower power values&lt;br&gt;
%===========================================&lt;br&gt;
&lt;br&gt;
power_vector(y,x) =(power_vector(y,x+1)...&lt;br&gt;
&amp;nbsp;+ power_vector(y,x-1))/2&lt;br&gt;
&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
&amp;nbsp;Alicia Sanchez wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I need to plot a figure more or less like the one showed in the&lt;br&gt;
&amp;gt; &quot;surf&lt;br&gt;
&amp;gt; function&quot;. My problem is that I have 3 vectors of size Nx1, that&lt;br&gt;
&amp;gt; indicate the x and y coordinates, and the other one the power value&lt;br&gt;
&amp;gt; associated to that point (x,y).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; My problem is that I need to make some interpolation with the&lt;br&gt;
&amp;gt; values&lt;br&gt;
&amp;gt; that I have, in order to construct the surface to be respresented.&lt;br&gt;
&amp;gt; In&lt;br&gt;
&amp;gt; this picture is shown more or less the values that I've got. The&lt;br&gt;
&amp;gt; x&#180;s&lt;br&gt;
&amp;gt; represents a different value. So i need to cover the holes in&lt;br&gt;
&amp;gt; between&lt;br&gt;
&amp;gt; them, so I can draw a surface where the height (or color) indicates&lt;br&gt;
&amp;gt; the value of the power.&lt;br&gt;
&amp;gt; Any of you know how to solve this problem?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; |&lt;br&gt;
&amp;gt; | x x&lt;br&gt;
&amp;gt; | x x x x x x&lt;br&gt;
&amp;gt; |xx x x x x x x&lt;br&gt;
&amp;gt; |xx x x&lt;br&gt;
&amp;gt; |x x x x x x x&lt;br&gt;
&amp;gt; |_________________________</description>
    </item>
    <item>
      <pubDate>Fri, 02 Jun 2006 00:01:25 -0400</pubDate>
      <title>Re: 3D Mapping</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/125789#316821</link>
      <author>CRet</author>
      <description>&quot;Perry&quot; &amp;lt;reply@board.thanks&amp;gt; wrote in&lt;br&gt;
news:ef386c5.0@webcrossing.raydaftYaTP...&lt;br&gt;
[skip]&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; if isempty(power_vector(y,x))&lt;br&gt;
&amp;gt;&lt;br&gt;
[skip]&lt;br&gt;
&lt;br&gt;
&quot;Alicia Sanchez&quot; &amp;lt;aliciasmm82@gmail.com&amp;gt; wrote in&lt;br&gt;
news:ef386c5.-1@webcrossing.raydaftYaTP...&lt;br&gt;
&amp;gt; I need to plot a figure more or less like the one showed in the &quot;surf&lt;br&gt;
function&quot;.&lt;br&gt;
&amp;gt;  My problem is that I have 3 vectors of size Nx1,&lt;br&gt;
&lt;br&gt;
Sorry Perry, but your &quot;power_vector&quot; matrice not correspond to the initial&lt;br&gt;
condition indicate by Alicia.&lt;br&gt;
&lt;br&gt;
C.Ret</description>
    </item>
    <item>
      <pubDate>Fri, 02 Jun 2006 00:33:26 -0400</pubDate>
      <title>Re: 3D Mapping</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/125789#316823</link>
      <author>CRet</author>
      <description>Dear Akicia,&lt;br&gt;
&lt;br&gt;
look at the doc griddata and the exemple.&lt;br&gt;
&lt;br&gt;
Hope this help you.&lt;br&gt;
C.Ret&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Alicia Sanchez&quot; &amp;lt;aliciasmm82@gmail.com&amp;gt; wrote in&lt;br&gt;
news:ef386c5.-1@webcrossing.raydaftYaTP...&lt;br&gt;
&amp;gt; I need to plot a figure more or less like the one showed in the &quot;surf&lt;br&gt;
&amp;gt; function&quot;. My problem is that I have 3 vectors of size Nx1, that&lt;br&gt;
&amp;gt; indicate the x and y coordinates, and the other one the power value&lt;br&gt;
&amp;gt; associated to that point (x,y).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; My problem is that I need to make some interpolation with the values&lt;br&gt;
&amp;gt; that I have, in order to construct the surface to be respresented. In&lt;br&gt;
&amp;gt; this picture is shown more or less the values that I've got. The x&#180;s&lt;br&gt;
&amp;gt; represents a different value. So i need to cover the holes in between&lt;br&gt;
&amp;gt; them, so I can draw a surface where the height (or color) indicates&lt;br&gt;
&amp;gt; the value of the power.&lt;br&gt;
&amp;gt; Any of you know how to solve this problem?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; |&lt;br&gt;
&amp;gt; | x x&lt;br&gt;
&amp;gt; | x x x x x x&lt;br&gt;
&amp;gt; |xx x x x x x x&lt;br&gt;
&amp;gt; |xx x x&lt;br&gt;
&amp;gt; |x x x x x x x&lt;br&gt;
&amp;gt; |_________________________</description>
    </item>
    <item>
      <pubDate>Fri, 02 Jun 2006 04:52:04 -0400</pubDate>
      <title>Re: 3D Mapping</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/125789#316877</link>
      <author>Perry</author>
      <description>CRet,&lt;br&gt;
&lt;br&gt;
You're right ! Utter rubbish I wrote. I blame it on me responding&lt;br&gt;
late at night.&lt;br&gt;
&lt;br&gt;
Sorry Alicia !&lt;br&gt;
&lt;br&gt;
&amp;nbsp;CRet wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Dear Akicia,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; look at the doc griddata and the exemple.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hope this help you.&lt;br&gt;
&amp;gt; C.Ret&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;Alicia Sanchez&quot; &amp;lt;aliciasmm82@gmail.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; news:ef386c5.-1@webcrossing.raydaftYaTP...&lt;br&gt;
&amp;gt;&amp;gt; I need to plot a figure more or less like the one showed in the&lt;br&gt;
&amp;gt; &quot;surf&lt;br&gt;
&amp;gt;&amp;gt; function&quot;. My problem is that I have 3 vectors of size Nx1,&lt;br&gt;
that&lt;br&gt;
&amp;gt;&amp;gt; indicate the x and y coordinates, and the other one the power&lt;br&gt;
&amp;gt; value&lt;br&gt;
&amp;gt;&amp;gt; associated to that point (x,y).&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; My problem is that I need to make some interpolation with the&lt;br&gt;
&amp;gt; values&lt;br&gt;
&amp;gt;&amp;gt; that I have, in order to construct the surface to be&lt;br&gt;
&amp;gt; respresented. In&lt;br&gt;
&amp;gt;&amp;gt; this picture is shown more or less the values that I've got.&lt;br&gt;
The&lt;br&gt;
&amp;gt; x&#180;s&lt;br&gt;
&amp;gt;&amp;gt; represents a different value. So i need to cover the holes in&lt;br&gt;
&amp;gt; between&lt;br&gt;
&amp;gt;&amp;gt; them, so I can draw a surface where the height (or color)&lt;br&gt;
&amp;gt; indicates&lt;br&gt;
&amp;gt;&amp;gt; the value of the power.&lt;br&gt;
&amp;gt;&amp;gt; Any of you know how to solve this problem?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; |&lt;br&gt;
&amp;gt;&amp;gt; | x x&lt;br&gt;
&amp;gt;&amp;gt; | x x x x x x&lt;br&gt;
&amp;gt;&amp;gt; |xx x x x x x x&lt;br&gt;
&amp;gt;&amp;gt; |xx x x&lt;br&gt;
&amp;gt;&amp;gt; |x x x x x x x&lt;br&gt;
&amp;gt;&amp;gt; |_________________________&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;</description>
    </item>
  </channel>
</rss>

