[scilab-Users] Need help on a scilab function

Antoine Monmayrant antoine.monmayrant at laas.fr
Wed Dec 14 19:04:51 CET 2011


Le 14/12/11 15:39, Rémi Chaussenot a écrit :
> Hi Everybody,
>
>
> A collegue makes me a function on MatLab, but i use SciLab, and its 
> not working at all.
>
>
> That's the function :
>
> function newTab = countAlone(filename, sheet)
> tab = xlsread([filename '.xlsx'], sheet);
> [count values] = hist(tab, unique(tab));
> newTab(:, 1) = values;
> newTab(:, 2) = count;
> xlswrite([filename '_new.xlsx'], newTab, sheet);
>
>
> I know that i must add a "endfunction" at the end, and use xls_read 
> instead of xlsread.
> But, don't change anything, same bugs.
>
> Could you help me please ?
>
>
> Thanks a lot,
>
>
>
>
>
> -- 
> Rémi CHAUSSENOT
> PhD
>
> Centre de Neurosciences Paris-Sud (CNPS)
> remi.chaussenot at u-psud.fr <mailto:remi.chaussenot at u-psud.fr>
>
Hi Rémi,

Can you send your modified function, a test xls file and the error 
reported by scilab?
This would help us helping you ! ;-)
Also, I am not sure xls_read handles the last ".xlsX" Excell file format.

ANtoine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20111214/c915b101/attachment.htm>


More information about the users mailing list