<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Courier New"><br>
Dear all,<br>
<br>
I've noticed that log10 doesn't support hyperarrays, while log
(natural logrithm) does (even if the documantation in both cases
says they are applicable to vectors and matrices: <br>
<br>
a = rand(3,2,2);<br>
b = log(a)<br>
c = log10(a)<br>
d = log(a)/log(10) <br>
<br>
--> b = log(a)<br>
b = <br>
<br>
(:,:,1)<br>
<br>
-0.6847401 -0.0808957<br>
-1.051648 -0.0525378<br>
-0.9483546 -1.06847 <br>
(:,:,2)<br>
<br>
-0.9781346 -0.6944493<br>
-0.3091181 -1.3323448<br>
-1.3410298 -0.6436786<br>
<br>
--> c = log10(a)<br>
c = <br>
<br>
-0.2973788 -0.0351326<br>
-0.4567249 -0.0228169<br>
-0.4118652 -0.4640306<br>
<br>
--> d = log(a)/log(10) <br>
d = <br>
<br>
(:,:,1)<br>
<br>
-0.2973788 -0.0351326<br>
-0.4567249 -0.0228169<br>
-0.4118652 -0.4640306<br>
(:,:,2)<br>
<br>
-0.4247984 -0.3015955<br>
-0.1342483 -0.57863 <br>
-0.5824019 -0.279546 <br>
<br>
As can be seen, log10 is yielding just the first page.<br>
<br>
It's strange, since log10 can be easily obtained from log, but
both functions are primitives<br>
<br>
</font><font face="Courier New">Regards,<br>
<br>
Federico Miyara<br>
<br>
</font>
</body>
</html>