Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
I don't understand why I'm getting an error for r^2. It should =1. If I change the name to rsquared, rsquared= just prints out a vector. Once I fix that, will the graph finally plot?
I attached that data file in case you need it.
Your problem is mainly with vectorizing, do not vectoirze arguments of functions that operate on vectors.
You cannot use r^2 directly as a variable, us rsquared or the Chemistry notation.
Please check the r^2, not sure that is waht you want
To use record "r^2" for the variable you need to use the keyboard shortcut "ctrl + shift + j" and "ctrl + shift + k":