When I start and end a function. I get the error ('local function has the same name as file'). can anyone help with this. Thank you

 Accepted Answer

function should be the first word in the m-file that defines the function!
(remove the clc and clear)

More Answers (0)

Asked:

on 11 Feb 2018

Commented:

on 11 Feb 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!