I can't get my script to run in the newer matlab build. I'm being forced to use the newest version for this assignment. The issue is that the function part goes at the bottom of the script, so at the top of the script are my final result variables that I want it to display. These are undefined till after the code runs. When I try to run it, I get an error that these top variables are undefined, if I move these undefined varibles to the bottom of the script, it gives me the error that the function part must be at the bottom of the script. Out smarted by matlab, somebody please help me. I've included the basics of the code to show what I mean.
format long esum = fabserr = yrelerr = y/en = ifunction[tay]=taylor(x,n)%code goes here
end
Best Answer