フィルターのクリア

Warning: Function and has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.

150 ビュー (過去 30 日間)
Please someone assist what to do to resolve this warning ,i dont have any idea what to do.
  8 件のコメント
Yomna Behery
Yomna Behery 2020 年 12 月 28 日
how to change the function name?
Walter Roberson
Walter Roberson 2020 年 12 月 31 日
You can rename the file using movefile() -- but often it is easier to use an operating system facility such as Windows Explorer
You would change the file name to not conflict with other Mathworks functions that might be needed.
It would also be recommended to then edit the .m file to change the 'function' line to match the new file name.
For the first function in a .m file, MATLAB uses the file name instead of the function name from the function line, but it is not recommended practice.

サインインしてコメントする。

採用された回答

Fangjun Jiang
Fangjun Jiang 2017 年 7 月 17 日
The message says that your code contains a function that has the same name as a built-in function. For example, you might have written a function called "abs" but "abs" is a built-in function provided by MATLAB.
Technically, you can do that. But it suggests that you change the name of your function to avoid this type of conflict.
  3 件のコメント
Walter Roberson
Walter Roberson 2017 年 7 月 18 日
The error messages just posted indicate that the problem involves functions named "input" and "and"
ASIYA BEGUM
ASIYA BEGUM 2017 年 7 月 19 日
yes ,now i got it . Thank you

サインインしてコメントする。

その他の回答 (1 件)

Kalaiarasan A
Kalaiarasan A 2022 年 2 月 27 日
Warning: Function image has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
  2 件のコメント
Kalaiarasan A
Kalaiarasan A 2022 年 2 月 27 日
close all;
a_c = imread("football.jpg");
a = rgb2gray(a_c);
figure(2);
subplot(2,2,1);
imshow(a);
title('Input Image');
heq = histeq(a);
subplot(2,2,2);
imshow(heq);
title('Equlized image');
subplot(2,2,3);
imhist(a);
title('Histogram of the input image');
subplot(2,2,4);
imhist(heq);
title('Equalized image')
Walter Roberson
Walter Roberson 2022 年 2 月 27 日
You appear to have stored that code in a file named image.m . You should use a different file name -- a name that is not the same as any MATLAB Function.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by