Error: Attempt to execute SCRIPT linspace as a function - How to revert linspace to original?

1 回表示 (過去 30 日間)
Hello Community,
I am trying to use imsharpen, following the examples in the help doc. Unfortunately, I get the following error about linspace when I call imsharpen:
Attempt to execute SCRIPT linspace as a function:
C:\Users\10B\MatlabFiles\Mets\Ph 1\linspace.m
Error in applycurve (line 63)
samples = linspace(0.0, 1.0, clength)';
Error in applymattrc_fwd (line 30)
rgb(:, i) = applycurve(in(:, i), TRC{i}, 0, 'spline'); %#ok<AGROW>
Error in applycform (line 88)
out = c.c_func(columndata, cdata{:});
Error in applycformsequence (line 11)
out = applycform(out, cforms{k});
Error in applycform (line 88)
out = c.c_func(columndata, cdata{:});
Error in applycformsequence (line 11)
out = applycform(out, cforms{k});
Error in applycform (line 88)
out = c.c_func(columndata, cdata{:});
Error in imsharpen>convertRGB2Lab (line 173)
I = applycform(I, cform);
Error in imsharpen (line 88)
[A, classA] = convertRGB2Lab(A);
I think that somehow in the past I have created a linspace.m file (not intentionally) due to the filepath shown above, and this is the script that Matlab is trying to call.
So, how can I revert linspace back to the original form? Or am I doing something else wrong/missing something?
Regards,
10B

採用された回答

Walter Roberson
Walter Roberson 2015 年 11 月 19 日
Delete C:\Users\10B\MatlabFiles\Mets\Ph 1\linspace.m
  3 件のコメント
Steven Lord
Steven Lord 2015 年 11 月 19 日
Renaming your linspace.m file would also have worked.
10B
10B 2015 年 11 月 19 日
A good tip Steven, thanks.

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by