How to remove this error, I get it in all my programme?

2 ビュー (過去 30 日間)
riddhi thakkar
riddhi thakkar 2019 年 2 月 18 日
回答済み: Image Analyst 2019 年 2 月 18 日
Error using gradient (line 49)
Too many output arguments.
Error in feature (line 21)
[gx gy]=gradient(G);
Error in images.internal.isFigureAvailable (line 9)
if feature('showFigureWindows')
Error in imshow (line 207)
if ~images.internal.isFigureAvailable()
Error in Untitle (line 2)
imshow(A);
please, Help me as soon as possible.

回答 (2 件)

Walter Roberson
Walter Roberson 2019 年 2 月 18 日
Use
which -all gradient
I suspect you will find that you have your own gradient.m or else that you have a third-party toolbox installed that has its own gradient.m that is interfering with the Mathworks' provided gradient() function.
But first your problem is that you have your own feature.m or a third-party toolbox feature.m on your path that is causing problems.
  7 件のコメント
riddhi thakkar
riddhi thakkar 2019 年 2 月 18 日
I found RESTOREDEFAULTPATH_EXECUTED in workspace but i till get errors like this:
>> Untitled3
Warning: Function image has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.
> In restoredefaultpath at 51
In Untitled3 at 2
Warning: Function image has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.
> In Untitled3 at 3
Warning: Function image has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.
> In tempdir at 31
In tempname at 17
In savepath>iFopenTempLocation at 274
In savepath at 158
In Untitled3 at 4
>> Untitle
Attempt to call constructor image with incorrect letter case.
Error in basicImageDisplay (line 24)
hh = image(cdata, ...
Error in imshow (line 266)
hh = basicImageDisplay(fig_handle,ax_handle,...
Error in Untitle (line 2)
imshow(A);
>> Untitled3
Warning: Function image has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.
> In restoredefaultpath at 51
In Untitled3 at 2
Warning: Function image has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.
> In Untitled3 at 3
>> Untitled3
Warning: Function image has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.
> In restoredefaultpath at 51
In Untitled3 at 2
Warning: Function image has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.
> In Untitled3 at 3
>> final
Warning: Image is too big to fit on screen; displaying at 67%
> In imuitools\private\initSize at 71
In imshow at 282
In final at 2
Error using adapthisteq
Expected input number 1, I, to be one of these types:
uint8, uint16, double, int16, single
Instead its type was logical.
Error in adapthisteq>parseInputs (line 416)
validateattributes(I, {'uint8', 'uint16', 'double', 'int16', 'single'}, ...
Error in adapthisteq (line 154)
[I, selectedRange, fullRange, numTiles, dimTile, clipLimit, numBins, ...
Error in final (line 43)
mask = adapthisteq(BW);
What Should do?
Walter Roberson
Walter Roberson 2019 年 2 月 18 日
At the MATLAB command prompt, execute
prefdir
The output will be the name of a directory on your machine. Take note of that information. Now quit MATLAB. Use your system tools to navigate to the directory that contains the one that was named, and renamed the directory to something else. Now go back into MATLAB and things might start working properly.

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


Image Analyst
Image Analyst 2019 年 2 月 18 日
I think you meant imgradient(), not gradient().

カテゴリ

Help Center および File ExchangeImage Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by