octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing categorial function


From: NVS Abhilash
Subject: Re: Implementing categorial function
Date: Sat, 26 Nov 2016 06:54:10 -0800 (PST)

Mike Miller-4 wrote
> On Tue, Nov 22, 2016 at 22:12:34 -0800, NVS Abhilash wrote:
>> I want to know if I want to develop the files and need to have assistance
>> in
>> some files, where should I have my code uploaded. Should it be github? or
>> their is some way of doing that in Savannah. I also want to learn
>> Mercurial
>> in the process too. I have known git, but knowing Mercurial too would be
>> awesome.
> 
> Bitbucket is the largest free (gratis) mercurial hosting site that I
> know of. You can create an account and host your work there if you want.
> 
> But you are free to use whatever code hosting solution is best for you.
> 
> Savannah only offers one official repository per project, there is no
> way to create user repositories or forks of the main project repository.
> 
> -- 
> mike

I wanted to ask is it okay to use inputParser in my class constructor or
not. Because I tried doing it and I am getting some silly error. Please tell
me weather their is mistake in my code or in inputParser.


A = {'r', 'g', 'b'; 'b', 'g', 'r'; 'g', 'r', 'b'};
B = categorical(A, {"r", "g", "b"}, {"red", "green", "blue"});

error: Invalid call to toupper.  Correct usage is:

 -- toupper (S)
 -- upper (S)
error: called from
    print_usage at line 91 column 5
    parse at line 422 column 13
    categorical at line 44 column 9


The functions implemented are uploaded here: 
https://address@hidden/nvs232/octave-categorical
<https://address@hidden/nvs232/octave-categorical>  

Also please have a overview of the work done yet, and suggest any better way
of doing things, though it is not working now, but I tried doing it normally
by nargin it worked fine for 3 arguments, but the constructor requires
varargin. So is their a better way to implement this. 

Thanks,
NVS




-----
NVS Abhilash
--
View this message in context: 
http://octave.1599824.n4.nabble.com/Implementing-categorial-function-tp4680686p4680783.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]