Need help creating a function with multiple inputs.
Show older comments
Here is my function.
function N = line(A_0,a,t)
N = exp.^(A_0./a).*(1-exp.^(-a.*t));
end
It's giving me an error saying that function name 'line' is known to Matlab by its file name 'N'. How can I fix this?
Answers (1)
Walter Roberson
on 12 Nov 2013
0 votes
You need to save it to the file line.m instead of saving it to N.m
Caution: line() is the MATLAB function used to draw lines. It is not recommended that you use it for your own function name!
1 Comment
Alexander
on 12 Nov 2013
Categories
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!