[ans,ans,Minstances_hat] = unique(B(:)); gives: Wrong number of output arguments.
I also tried : [Minstances_hat] = unique(B(:)); and get a vector. also [Minstances_hat,index] = unique(B(:)); seem to work. However afterwards there is this line: masks = reshape(Minstances_hat-1,size(B)); I try to convert via: mask = matrix(Minstances_hat-1,size(B)); but no success. Am Mi., 16. Okt. 2019 um 11:50 Uhr schrieb Stéphane Mottelet < stephane.motte...@utc.fr>: > Hello > Le 16/10/2019 à 11:46, P M a écrit : > > Dear experts, > > trying to convert a matlab code to scilab I come across following line: > > [~,~,Minstances_hat] = unique(B(:)); > > How to replace the "~" symbol? > > by dummy names, e.g. > > [ans,ans,Minstances_hat] = unique(B(:)); > > There is no equivalent mechanism in Scilab. > > B is the blue channel of a RGB image...hence a m x n matrix of integers > (type(B) = 8 ) > > > Thank you, > > Philipp > > > _______________________________________________ > users mailing > listusers@lists.scilab.orghttps://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users > > -- > Stéphane Mottelet > Ingénieur de recherche > EA 4297 Transformations Intégrées de la Matière Renouvelable > Département Génie des Procédés Industriels > Sorbonne Universités - Université de Technologie de Compiègne > CS 60319, 60203 Compiègne cedex > Tel : +33(0)344234688http://www.utc.fr/~mottelet > > _______________________________________________ > users mailing list > users@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users >
_______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users