<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Indexed Assignment</title>
	<link>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/</link>
	<description>Loren Shure  works on design of the MATLAB language at &#60;a href="http://www.mathworks.com/"&#62;The MathWorks&#60;/a&#62;. She writes here about once a week on MATLAB programming and related topics. &#60;br&#62;&#60;br&#62;&#60;a href="/images/loren-full.jpg"&#62;&#60;img src="/images/loren.jpg"&#62;&#60;/a&#62;</description>
	<pubDate>Mon, 23 Nov 2009 00:57:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: shasrin</title>
		<link>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-18843</link>
		<dc:creator>shasrin</dc:creator>
		<pubDate>Thu, 11 Oct 2007 02:39:58 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-18843</guid>
		<description>Hi, I want to know how to perform the arithmetic operation for two image? I have a problem for two image with different size.I really want to know is anyone has a sample coding for that?Plz...help me to find this kind of solution...tq</description>
		<content:encoded><![CDATA[<p>Hi, I want to know how to perform the arithmetic operation for two image? I have a problem for two image with different size.I really want to know is anyone has a sample coding for that?Plz&#8230;help me to find this kind of solution&#8230;tq</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Armyr</title>
		<link>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-17292</link>
		<dc:creator>Daniel Armyr</dc:creator>
		<pubDate>Wed, 12 Sep 2007 14:54:28 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-17292</guid>
		<description>jai: How about you take a look at the Matlab file-exchange. There are loads of files there that do all sorts of things. If someone else has wanted to do that particular thing, there will probably be a script.

On the other hand, maybe you should consider doing your own homework. This sounds very much like you are planning to plagiarize someone else's work and hand it is as your own.

--DA</description>
		<content:encoded><![CDATA[<p>jai: How about you take a look at the Matlab file-exchange. There are loads of files there that do all sorts of things. If someone else has wanted to do that particular thing, there will probably be a script.</p>
<p>On the other hand, maybe you should consider doing your own homework. This sounds very much like you are planning to plagiarize someone else&#8217;s work and hand it is as your own.</p>
<p>&#8211;DA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jai</title>
		<link>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16961</link>
		<dc:creator>jai</dc:creator>
		<pubDate>Sat, 08 Sep 2007 12:18:38 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16961</guid>
		<description>is there any command to differentiate plastic and paper using the image captured by matlab 7.0 and normal web-camera...plz help</description>
		<content:encoded><![CDATA[<p>is there any command to differentiate plastic and paper using the image captured by matlab 7.0 and normal web-camera&#8230;plz help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jai</title>
		<link>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16960</link>
		<dc:creator>jai</dc:creator>
		<pubDate>Sat, 08 Sep 2007 12:15:56 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16960</guid>
		<description>Hai guys,
i am currently doing final year project using vision system. my project have to differentiate plastic and paper. I am using normal web-cam to capture the images.The programme that i am using is matlab version 7.0. I am now searching on how to differentiate it. Is there any commands in matlab that can help me in differentiating this two materials. I really want to know if there is any. Please if anyone know do help me.
Thank you</description>
		<content:encoded><![CDATA[<p>Hai guys,<br />
i am currently doing final year project using vision system. my project have to differentiate plastic and paper. I am using normal web-cam to capture the images.The programme that i am using is matlab version 7.0. I am now searching on how to differentiate it. Is there any commands in matlab that can help me in differentiating this two materials. I really want to know if there is any. Please if anyone know do help me.<br />
Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jayathissa K.E.I</title>
		<link>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16946</link>
		<dc:creator>Jayathissa K.E.I</dc:creator>
		<pubDate>Sat, 08 Sep 2007 09:38:48 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16946</guid>
		<description>we want to more example.</description>
		<content:encoded><![CDATA[<p>we want to more example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Armyr</title>
		<link>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16284</link>
		<dc:creator>Daniel Armyr</dc:creator>
		<pubDate>Thu, 07 Jun 2007 08:33:46 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16284</guid>
		<description>I would have to join the group saying Matlab should complain a bit more when it comes to type conversions. Every now and then I have numbers in integer types and I want to keep them that way. However, Matlab tends to like to make them doubles every now and then and tracking down where it happens can be a pain.

However, in the philosophy that Matlab should be math and not programming, I would have to say that warnings are sufficient. Calling it an error would be way overkill.</description>
		<content:encoded><![CDATA[<p>I would have to join the group saying Matlab should complain a bit more when it comes to type conversions. Every now and then I have numbers in integer types and I want to keep them that way. However, Matlab tends to like to make them doubles every now and then and tracking down where it happens can be a pain.</p>
<p>However, in the philosophy that Matlab should be math and not programming, I would have to say that warnings are sufficient. Calling it an error would be way overkill.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16274</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 06 Jun 2007 15:45:03 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16274</guid>
		<description>Wes,

There's a page in the MATLAB documentation that discusses concatenation of different data types:

http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_prog/f1-84864.html

This is from the documentation for MATLAB 7.4 (R2007a) but I don't believe this behavior has changed recently.  The priority list you posted agrees with what's in the documentation.  This page also discusses the integer casting warning.</description>
		<content:encoded><![CDATA[<p>Wes,</p>
<p>There&#8217;s a page in the MATLAB documentation that discusses concatenation of different data types:</p>
<p><a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_prog/f1-84864.html" rel="nofollow">http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab_prog/f1-84864.html</a></p>
<p>This is from the documentation for MATLAB 7.4 (R2007a) but I don&#8217;t believe this behavior has changed recently.  The priority list you posted agrees with what&#8217;s in the documentation.  This page also discusses the integer casting warning.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Urs (us) Schwarz</title>
		<link>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16272</link>
		<dc:creator>Urs (us) Schwarz</dc:creator>
		<pubDate>Wed, 06 Jun 2007 12:40:20 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16272</guid>
		<description>SNIP misunderstanding
     x=[false,true,false];
     x(1)=2;
%    x = 1 1 0
I think Matlab should complain when I run x(1) = 2...

not at all; the help clearly says:
...
Any non-zero real element of input array X is converted to a logical 1 while zeros in X become logical 0.
...
which makes a lot of sense, by the way...
us
sorry, first reply got screwed up</description>
		<content:encoded><![CDATA[<p>SNIP misunderstanding<br />
     x=[false,true,false];<br />
     x(1)=2;<br />
%    x = 1 1 0<br />
I think Matlab should complain when I run x(1) = 2&#8230;</p>
<p>not at all; the help clearly says:<br />
&#8230;<br />
Any non-zero real element of input array X is converted to a logical 1 while zeros in X become logical 0.<br />
&#8230;<br />
which makes a lot of sense, by the way&#8230;<br />
us<br />
sorry, first reply got screwed up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Urs (us) Schwarz</title>
		<link>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16271</link>
		<dc:creator>Urs (us) Schwarz</dc:creator>
		<pubDate>Wed, 06 Jun 2007 12:39:13 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16271</guid>
		<description>
Any non-zero real element of input array X is converted to a logical 1 while zeros in X become logical 0.

which makes a lot of sense, by the way...
us</description>
		<content:encoded><![CDATA[<p>Any non-zero real element of input array X is converted to a logical 1 while zeros in X become logical 0.</p>
<p>which makes a lot of sense, by the way&#8230;<br />
us</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes Campaigne</title>
		<link>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16269</link>
		<dc:creator>Wes Campaigne</dc:creator>
		<pubDate>Wed, 06 Jun 2007 04:57:12 +0000</pubDate>
		<guid>http://blogs.mathworks.com/loren/2007/06/05/indexed-assignment/#comment-16269</guid>
		<description>How does cat choose the 'dominant' class, i.e., the class of its return value?

A quick experiment with the basic types seems to reveal a descending priority of:
char
integer types (if there are multiple different integer-typed operands, the type of the left-most of these is dominant)
single
double
logical

Appropriate warnings are given most of the time, but truncation of floats to char doesn't throw any. And promotion of one integer type (or logicals) to a bigger integer type DOES throw a warning, even though it's unnecessary.

Is there a particular reasoning behind all this behaviour? I haven't noticed it documented anywhere.</description>
		<content:encoded><![CDATA[<p>How does cat choose the &#8216;dominant&#8217; class, i.e., the class of its return value?</p>
<p>A quick experiment with the basic types seems to reveal a descending priority of:<br />
char<br />
integer types (if there are multiple different integer-typed operands, the type of the left-most of these is dominant)<br />
single<br />
double<br />
logical</p>
<p>Appropriate warnings are given most of the time, but truncation of floats to char doesn&#8217;t throw any. And promotion of one integer type (or logicals) to a bigger integer type DOES throw a warning, even though it&#8217;s unnecessary.</p>
<p>Is there a particular reasoning behind all this behaviour? I haven&#8217;t noticed it documented anywhere.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
