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

4 Ansichten (letzte 30 Tage)
Jonah Bricknell
Jonah Bricknell am 1 Dez. 2020
Kommentiert: Jon am 1 Dez. 2020
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.

Akzeptierte Antwort

Jon
Jon am 1 Dez. 2020
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 Kommentare
Jonah Bricknell
Jonah Bricknell am 1 Dez. 2020
Cheers Jon , this worked perfectly
Jon
Jon am 1 Dez. 2020
Excellent - glad to hear

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Ameer Hamza
Ameer Hamza am 1 Dez. 2020
xline() was introduced in R2018b. If you are using an older release, you will get this error.
  3 Kommentare
Jon
Jon am 1 Dez. 2020
please see my answer below
Jonah Bricknell
Jonah Bricknell am 1 Dez. 2020
Yeah checked your answer Jon;
Thanks Ameer

Melden Sie sich an, um zu kommentieren.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by