[Scilab-users] Incorrect color in function

Federico Miyara fmiyara at fceia.unr.edu.ar
Fri Apr 10 15:28:20 CEST 2020


Dear all,

When writing the following script in SciNotes (v. 6.1):

function y = testcolor(t)
     if 1==1
         y = sinc(t)
         plot(t, y)
         legend("sinc")
     else
         y = 1
     end
endfunction

the end of the if structure appears with the same brownish color as the 
endfunction. Strangely, if copying and pasting here or into a word 
processor document, the color is the expected purple (that's why I 
removed all colors in this message).

It seems that the culprit is the legend clause.

Regards,

Federico Miyara




More information about the users mailing list