How can i write code after defining a function in matlab?
I would have separated them but I have to submit my homework as whole, one .m file.
It gives the following error "This statement is not inside any function.". I tried the answers in the web but it wont work.
My .m file starts with defining the function and after the end statement, after the definition I start writing my code. And I use my function defined above in the code
Thanks very much.