[Scilab-users] Adding a matrix with the empty matrix will give an empty matrix

Viktor Mileikovskyi v_mil at ukr.net
Mon Mar 27 20:49:35 CEST 2017


Dear members! 

I have problems with new warning "Warning adding a matrix with the empty matrix will give an empty matrix result.". 

A construction such as 

y(x>10)=y(x>10)+1; 

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. 

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? 

Multiplication, division or power do not produce the same warning. 

With best regards. 
Viktor. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170327/352b694b/attachment.htm>


More information about the users mailing list