help-octave
[Top][All Lists]
Advanced

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

Re: mutate=rand([size(newpop,1)1]) < q this looks right but I keep getti


From: naryana.shankara
Subject: Re: mutate=rand([size(newpop,1)1]) < q this looks right but I keep getting a parse error
Date: Wed, 9 Mar 2016 08:38:19 -0800 (PST)

Thanks adding the command before the last resolved the problem
On Mar 9, 2016 6:56 AM, "Przemek Klosowski-7 [via Octave]" <
address@hidden> wrote:

> On 03/08/2016 09:24 PM, naryana.shankara wrote:
>
> Usually when I get an error its something stupid like mismatched brackets or
> wrong punctuation.
> I getting a parse error here is my code (offending line between spaces and
>
> mutate=rand([size(newpop,1)1]) < q %probability of mutation occuring use
>
> You use this phrase size(newpop,1)1  three times in your code, and it just
> doesn't make sense syntactically: size(..) returns a number, and you just
> can't follow this with a naked '1'.  You probably want
> rand(size(newpop,1),1)
>
>
>
> _______________________________________________
> Help-octave mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=4675310&i=0>
> https://lists.gnu.org/mailman/listinfo/help-octave
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://octave.1599824.n4.nabble.com/mutate-rand-size-newpop-1-1-q-this-looks-right-but-I-keep-getting-a-parse-error-tp4675304p4675310.html
> To unsubscribe from mutate=rand([size(newpop,1)1]) < q this looks right
> but I keep getting a parse error, click here
> <http://octave.1599824.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4675304&code=bmFyeWFuYS5zaGFua2FyYUBnbWFpbC5jb218NDY3NTMwNHwtNDM1NjUwNTEy>
> .
> NAML
> <http://octave.1599824.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://octave.1599824.n4.nabble.com/mutate-rand-size-newpop-1-1-q-this-looks-right-but-I-keep-getting-a-parse-error-tp4675304p4675311.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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