Need help creating a function with multiple inputs.
古いコメントを表示
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?
回答 (1 件)
Walter Roberson
2013 年 11 月 12 日
0 投票
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!
カテゴリ
ヘルプ センター および File Exchange で Entering Commands についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!