[Scilab-users] Strange behaviour of char(?) function in scilab-6.0.0-alpha-1
Nikolay Strelkov
n.strelkov at gmail.com
Fri Jul 31 17:16:08 CEST 2015
Dear Scilab community and developers!
In my project I have the following code (simplified for clarity):
vals = [cellstr('aaa'),cellstr('bbb'),cellstr('ccc'),cellstr('ddd')];
for n = 1:size(vals,"*")
val = char(vals(n));
printf("\n%s",val);
if val == "aaa" then
disp('got aaa');
end
end;
It works as expected in Scilab 5.2.2, 5.3.0, 5.3.2, 5.3.3, 5.4.0, 5.4.1,
5.5.0, 5.5.1, 5.5.2 and in ScicosLab 4.4.1.
But it does not work in Scilab 6.0.0-alpha1.
Here I get error:
exec('/tmp/cell_problem.sci', -1)
char: Wrong type for input argument: Cell expected.
at line 95 of function char (
/home/norbert/Downloads/scilab-6.0.0-alpha-1/share/scilab/modules/compatibility_functions/macros/char.sci
line 104 )
at line 5 of executed file /tmp/cell_problem.sci
So my questions are:
1. Did you change something in char function in Scilab 6?
2. How should I change my code to make it working in Scilab 5.x and 6 with
the same functionality?
3. Do I need to report bug?
With best regards,
maintainer and developer of Mathieu functions toolbox
<http://atoms.scilab.org/toolboxes/Mathieu/> for Scilab,
IEEE member, Ph.D.,
Nikolay Strelkov.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150731/7c386273/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cell_problem.sci
Type: application/x-scilab
Size: 211 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20150731/7c386273/attachment.bin>
More information about the users
mailing list