<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Wait. That's a major change in behavior, and will result in some broken code out here in user-land:</p>
<p>-->getversion<br /> ans =<br /> <br /> scilab-5.5.2 <br /> <br />-->A = rand(3,3)<br /> A =<br /> <br /> 0.0683740 0.7263507 0.2320748 <br /> 0.5608486 0.1985144 0.2312237 <br /> 0.6623569 0.5442573 0.2164633 <br /> <br />-->A = A + []<br /> A =<br /> <br /> 0.0683740 0.7263507 0.2320748 <br /> 0.5608486 0.1985144 0.2312237 <br /> 0.6623569 0.5442573 0.2164633 </p>
<p>On 2017-03-27 11:49, Viktor Mileikovskyi wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><span class="xfm_82636180">Dear members!<br /><br />I have problems with new warning "Warning adding a matrix with the empty matrix will give an empty matrix result.".<br /><br />A construction such as<br /><br />y(x>10)=y(x>10)+1;<br /><br />produce the warning in 6.0.0 version if all of x<10. It is very critical if such construction is in a cost function of optimization, function for zero search or other iteration process.<br /><br />If millions of calculations of the affected function is required, the time consumption significantly increases and the output will be littered and unreadable. Using warning('off') usually is not good idea because it can suppress some important warning during the calculation. Is it possible to suppress the warning separately?<br /><br />Multiplication, division or power do not produce the same warning.<br /><br />With best regards.<br />Viktor.<br /></span><!-- html ignored --><br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> users mailing list<br /><a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br /><a href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a></div>
</blockquote>
<p><br /></p>
</body></html>