summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug461.sci
blob: a8dc8e777cc69d88db01082f72b673ff3f28ccc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// <-- Non-regression test for bug 461 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=461
//
// <-- Short Description -->
//    Bug Report Id: 11985200361815216
//    Result  of following operations:
//    size(s0)
//     ans  =
//    !   1.    43. !  
//
//    size(s1)   // and for s2 and s3
//     ans  =
//    !   43.    1. ! 
//    s0 is vector-row and s1, s2 s3- vector-colum
//
//
//    On Scilab 2.7 with " interp " function
//    The Error Messages are:
//                      !--error     5
//    inconsistent column/row dimensions   
//    Commands:  x=[0. 1.01 2.01 3. 4.02]; 
//    f=[0. 1. 3.9 8.75 16.5]; 
//    plot(x,f); 
//    d=splin(x,f ); 
// ...

correct=%F;
x=[0. 1.01 2.01 3. 4.02]; 
f=[0. 1. 3.9 8.75 16.5]; 
plot(x,f); 
d=splin(x,f );
xx=0:0.1:4.2;
[s0,s1,s2,s3]=interp(xx,x,f,d);
s0=s0';
s1=s1';
s2=s2';
s3=s3';
result=execstr("plot2d(xx,[s0 s1 s2 s3])","errcatch","n");
xdel();

if result==0 then
	affich_result(%T,461);
else
	affich_result(%F,461);
end