フィルターのクリア

Can I see the code for a Matlab Function?

2 ビュー (過去 30 日間)
David Katz
David Katz 2023 年 3 月 26 日
回答済み: Walter Roberson 2023 年 3 月 26 日
How do I see the code for a Matlab function? For example, ordfilt2 isn't working the way I think it should after reading its documentation, and I would like to see the code for how this function is implemented. Thank you.

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 3 月 26 日
function_name = 'ordfilt2';
location = which(function_name);
if isempty(location)
error('could not find function "%s" at all', function_name)
elseif strncmp(location, 'built-in ', 9)
error('function "%s" exists but is a built-in and cannot be viewed', function_name);
else
edit(location)
end

カテゴリ

Help Center および File ExchangeLinear Least Squares についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by