# Help to correct this code please

**URL:** https://discourse.julialang.org/t/help-to-correct-this-code-please/78421
**Category:** New to Julia
**Created:** [March 24, 2022, 5:34pm UTC](https://discourse.julialang.org/t/help-to-correct-this-code-please/78421 "2022-03-24T17:34:00Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![lawless-m](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lawless-m/32/30869_2.png) [@lawless-m](https://discourse.julialang.org/u/lawless-m)
#### Post date: [March 24, 2022, 7:26pm UTC](https://discourse.julialang.org/t/help-to-correct-this-code-please/78421/2 "2022-03-24T19:26:39Z")

</div>

what are x[i] and y[i] ? It looks to me, without running it, like they haven’t been defined

also, your code is not formatted and you haven’t included the full stacktrace

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

_[View the full topic](https://discourse.julialang.org/t/help-to-correct-this-code-please/78421)._
