[Scilab-users] declaration of uint8 matrix

Stéphane Mottelet stephane.mottelet at utc.fr
Wed Mar 13 19:09:27 CET 2013


Le 13/03/13 18:57, sgougeon at free.fr a écrit :
> Hello Stéphane,
>
>> De: "Stéphane Mottelet" <stephane.mottelet at utc.fr>
>> Is it possible to declare a uint8 matrix without first declaring it as a
>> double ? ../..
>
> Yes, you can do:
>
> -->ui = resize_matrix(uint8(0),5,3)
>   ui  =
>   
>    0  0  0
>    0  0  0
>    0  0  0
>    0  0  0
>    0  0  0
>   
> -->typeof(ui)
>   ans  =
>   uint8
>
> Regards
> Samuel
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
Thanks, that's very clever ! Maybe would it be a good idea to extend the 
syntax of uint8 (and others) like

ui=uint8(5,3) ?

S.



More information about the users mailing list