??? Attempt to call constructor line with incorrect letter case.
1 view (last 30 days)
Show older comments
This is the code i have written:
y = [1 .7 -.45 -0.6];
x = [.8 -.44 .36 .02];
t = -20 : 1 : 20;
imp = (t == 0);
j = filter(x,y,imp);
stem(t,j)
and i am getting this on the command window.
Attempt to call constructor line with incorrect letter case.
Error in ==> specgraph.stemseries.stemseries at 22
hMarker= line('hittest','off',...
Error in ==> stem at 83
h = [h specgraph.stemseries('YData',datachk(y(:,k)),
xdata{:},...
Error in ==> dspprac7 at 9
stem(t,j)
i have uninstalled matlab and then also installed from another source. but sa,e error is repeated.
3 Comments
Geoff Hayes
on 6 Aug 2014
jeni - just after the error is raised, in the Command Window type
which line -all
This will return all functions, scripts, classes, variables named line. I did the following and observed
line=33; % create a silly variable
which line -all
line is a variable.
built-in (/Applications/MATLAB_R2014a.app/toolbox/matlab/graphics/line)
It may be that you have a user-defined file (class, script, function, etc.) or that has the same name as line and so is conflicting with it. The solution is to rename your file so that it does not conflict with the MATLAB built-in function.
Also, ensure that you do not have any folders named line as well.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!