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.
cell_problem.sci
Description: application/scilab
_______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
