1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2016 - Scilab Enterprises - Adeline CARNIS
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- CLI SHELL MODE -->
8 // <-- Non-regression test for bug 14461 -->
10 // <-- Bugzilla URL -->
11 // http://bugzilla.scilab.org/show_bug.cgi?id=14461
13 // <-- Short Description -->
14 // Calling grand(n, "markov", P, x0) did not return all outputs.
15 // =============================================================================
17 P = [0.1 0.3 0.2 0.01 0.09 0.3 ; ...
18 0.2 0.1 0.1 0.5 0.05 0.05; ...
19 0 0 0.2 0.3 0.4 0.1 ; ...
20 0.4 0 0.1 0.05 0.05 0.4 ; ...
21 0.1 0.1 0.1 0.3 0.2 0.2 ; ...
22 0.2 0.2 0.1 0.1 0.2 0.2];
24 a=grand(n, "markov", P, x0);
25 assert_checkequal(size(a), [3 200]);