[Scilab-users] Scilab API sciprint to print on the same line

Chin Luh Tan chinluh.tan at bytecode-asia.com
Wed Dec 18 02:36:27 CET 2019


Hi, 



Looks like the last command followed by the clc(1) would be ignore :



example 1: 



--> for i=1:10 mprintf("%d\n",i) end; 

1

2

3

4

5

6

7

8

9

10



--> clc(1)

1 

2

3

4

5

6

7

8

9

10  <-- cleared

      <--cleared


example 2:

 

--> for i=1:10 mprintf("%d\n",i) end;clc(1) 

1

2

3

4

5

6

7


when the for loop printing 10, the clc(1) followed will immediately clear 9 and 8 making the 10 as never been exist. 


thanks.



CL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20191218/7bf14b67/attachment.htm>


More information about the users mailing list