Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why is the " UndefVarError: undef not defined " error happened?

It is used in the code:
tt=Array{Int64}(undef,0)
but the following error is shown:
UndefVarError: undef not defined
would you please say why it happened? and is there any alternative for the code?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

undef was introduced in Julia 0.7. If you are using a lower version, update Julia.

Or you can try tt=Array{Int64}(0). I don’t know whether this works in your system.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading