<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MATLAB Basics video: Interleaving data based on unique identifier</title>
	<atom:link href="http://blogs.mathworks.com/videos/2007/09/17/matlab-basics-video-interleaving-data-based-on-unique-identifier/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/videos/2007/09/17/matlab-basics-video-interleaving-data-based-on-unique-identifier/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<lastBuildDate>Fri, 10 Feb 2012 20:31:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ashley B.</title>
		<link>http://blogs.mathworks.com/videos/2007/09/17/matlab-basics-video-interleaving-data-based-on-unique-identifier/#comment-1844</link>
		<dc:creator>Ashley B.</dc:creator>
		<pubDate>Tue, 09 Feb 2010 19:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2007/09/17/matlab-basics-video-interleaving-data-based-on-unique-identifier/#comment-1844</guid>
		<description>the file seems to be gone so here is the code

&lt;pre&gt;
mI = (101:106)&#039;
mV = (11:11:66)&#039;
disp([mI mV])

pI = [102;103;105]
pV = [222;333;555]
disp([pI pV])

M = nan(6,3)

M(:,1) = mI

M(:,2) = mV

for i = 1:numel(pI)
    vi = find(mI ==pI(i));
    M(vi,3) = pV(i);
end

M
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>the file seems to be gone so here is the code</p>
<pre>
mI = (101:106)'
mV = (11:11:66)'
disp([mI mV])

pI = [102;103;105]
pV = [222;333;555]
disp([pI pV])

M = nan(6,3)

M(:,1) = mI

M(:,2) = mV

for i = 1:numel(pI)
    vi = find(mI ==pI(i));
    M(vi,3) = pV(i);
end

M
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

