Undefined function 'xline' for input arguments of type 'double'.

조회 수: 14 (최근 30일)
Jonah Bricknell
Jonah Bricknell 2020년 12월 1일
댓글: Jon 2020년 12월 1일
Have been working on a project on my laptop and university computer and when I sent over my data the 'xline' function no longer worked on the matlab file and renders the error - "Undefined function 'xline' for input arguments of type 'double'." and is not working for any value of xline(x1) that I enter on the computer.

채택된 답변

Jon
Jon 2020년 12월 1일
Is it possible that the university computer is running an outdated version of MATLAB? According to the documentation xline was introduced in 2018b. Type ver on the command line to see what version you are running. Otherwise it could be a path problem. Make sure that the directory where the xline.m file is found, e.g. C:\Program Files\MATLAB\R2020a\toolbox\matlab\specgraph\xline.m, is on the MATLAB path.
  댓글 수: 3
Jonah Bricknell
Jonah Bricknell 2020년 12월 1일
Cheers Jon , this worked perfectly
Jon
Jon 2020년 12월 1일
Excellent - glad to hear

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 12월 1일
xline() was introduced in R2018b. If you are using an older release, you will get this error.
  댓글 수: 3
Jon
Jon 2020년 12월 1일
please see my answer below
Jonah Bricknell
Jonah Bricknell 2020년 12월 1일
Yeah checked your answer Jon;
Thanks Ameer

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by