<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Claus,<br>
<br>
The power of a matrix is defined for square matrices so since a
vector with size strictly greater than 1 is not a square matrix we
decided to emit a warning in this case.<br>
We took this decision because this "feature" (ie [1 2 3]^2
<==> [1 2 3].^2) was confusing for students.<br>
So if you want to avoid the warning, you should replace v^2 by
v.^2 when v is a vector.<br>
<br>
Best regards,<br>
<br>
Calixte<br>
<br>
On 18/07/2014 12:50, Claus Futtrup wrote:<br>
</div>
<blockquote cite="mid:53C8FBF2.9080901@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi there<br>
<br>
When I run a script in Scilab 5.4.1 it's OK. When I run the same
script in Scilab 5.5.0 it displays a message saying something like
" vector ^ scalar is obsolete, use vector .^ scalar instead" ...
or something of this kind.<br>
<br>
My script executes lines like this a lot (I get many thousand
messages, in an optimization loop) and I cannot track exactly
what's causing this message.<br>
<br>
Is there anyone who can give me a tip what to look for?<br>
<br>
[later]<br>
P.S. I think the warning message says "qfunction" (a function I've
defined) and it might be lines like this one, which cause the
warning: <span style="color:rgb(0,0,0);">zmin1sim_mag</span> <span
style="color:rgb(92,92,92);">=</span> <span
style="color:rgb(50,185,185);">sqrt</span><span
style="color:rgb(74,85,219);">(</span><span
style="color:rgb(0,0,0);">zreal1</span><span
style="color:rgb(74,85,219);">(</span><span
style="color:rgb(0,0,0);">ifmin1</span><span
style="color:rgb(74,85,219);">)</span><span
style="color:rgb(92,92,92);">^</span><span
style="color:rgb(188,143,143);">2</span><span
style="color:rgb(92,92,92);">+</span><span
style="color:rgb(0,0,0);">zimag1</span><span
style="color:rgb(74,85,219);">(</span><span
style="color:rgb(0,0,0);">ifmin1</span><span
style="color:rgb(74,85,219);">)</span><span
style="color:rgb(92,92,92);">^</span><span
style="color:rgb(188,143,143);">2</span><span
style="color:rgb(74,85,219);">)</span><br>
<br>
So, is it correct that ^2 is obsolete and I should write .^2
instead??<br>
<br>
Any reason for this?<br>
<br>
Best regards,<br>
Claus<br>
<br>
<br>
<hr style="border:none; color:#909090; background-color:#B0B0B0;
height: 1px; width: 99%;">
<table style="border-collapse:collapse;border:none;">
<tbody>
<tr>
<td style="border:none;padding:0px 15px 0px 8px"> <a
moz-do-not-send="true" href="http://www.avast.com/"> <img
moz-do-not-send="true"
src="http://static.avast.com/emails/avast-mail-stamp.png"
border="0"> </a> </td>
<td>
<p style="color:#3d4d5a;
font-family:"Calibri","Verdana","Arial","Helvetica";
font-size:12pt;"> This email is free from viruses and
malware because <a moz-do-not-send="true"
href="http://www.avast.com/">avast! Antivirus</a>
protection is active. </p>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Calixte Denizet
Software Development Engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a></pre>
</body>
</html>