[Scilab-users] Matlab to Scilab code query

Lester Anderson arctica1963 at gmail.com
Tue Jul 17 11:53:09 CEST 2018


Hello all,

I have a query regarding some code I tweaked to run under Scilab from the
original Matlab version (attached both here). Both give the same result for
subplot 1 (upper view), but the lower subplot has different results and I
cannot see where the difference is occurring. It is just the one variable
'tecsub' that is different:

Output of Matlab code run under Octave 4.2.1
Time to run: ~75 seconds (Windows 8, 4 Gb RAM)

# name: tecsub
# type: matrix
# rows: 1
# columns: 10
 -139.3527934186596 842.87653145532 1025.945665042103 1146.425533894219
1203.652906805529 1059.430317329787 1537.631029751693 1733.651048106937
1764.494015134895 1550.652338116411

Output of Scilab version of code - 6.0.1
Time run(same system): barely 2 seconds

(-296.995965224827    1048.6694829971702    1170.395004249152
1144.5753136299015    1041.8907922680846    1221.1924318672322
1539.48125001601    1589.201708899888    1558.7010635930444
1708.2955099225785)

Also note how fast the code runs under Scilab compared to Octave running
broadly the same code. Didn't get to tweak the second subplot axis back to
0 depth at top, but here I'm interested in the values. If someone can see
where the variance is great.

Cheers
Lester
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180717/1a46f632/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Holt_Backstrip.m
Type: application/octet-stream
Size: 6482 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20180717/1a46f632/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Backstrip1
Type: application/octet-stream
Size: 5619 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20180717/1a46f632/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Holt_Backstrip.sce
Type: application/octet-stream
Size: 7037 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20180717/1a46f632/attachment-0002.obj>


More information about the users mailing list