I'm getting a confusing error message.
Show older comments
Unrecognized function or variable 'incomeTax'.
I do not understand why this variable is unrecognised.
Have attached a screenchot of my code.
Any help would be appreciated.
Thanks
Answers (1)
Remove first two lines.
Name of the file and function should be the same.
help function
2 Comments
Daoud Ahmad
on 6 Nov 2020
blah('blah') % function call
function blah(x) % saved under the name blah.m
['blah blah ', x]
end
Categories
Find more on MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!