Effacer les filtres
Effacer les filtres

Help with an error occurring

2 vues (au cours des 30 derniers jours)
G
G le 6 Nov 2018
Commenté : Walter Roberson le 11 Sep 2019
close all
clear all
clc
unzip(fullfile('QT_Database-master.zip'))
load(fullfile('QT_Database-master','QTData.mat'))
QTData % store labeled signals along with the label definitions.
head(QTData.Labels) %Use the head command to inspect the first few rows of the table contained in the Labels property of QTData.
patientID = 1;
signalVals = getSignal(QTData,patientID);
labelVals = getLabelValues(QTData,patientID,'WaveformLabels_Chan1');
displayWaveformLabels(signalVals(1,1:1000),labelVals.Value(1:1000))
I am getting an error
Undefined function or variable 'displayWaveformLabels'.
Error in Waveform_Segmentation_Example (line 16)
displayWaveformLabels(signalVals(1,1:1000),labelVals.Value(1:1000))
>>
Why am I getting this error?

Réponse acceptée

Stephen23
Stephen23 le 6 Nov 2018
Modifié(e) : Stephen23 le 6 Nov 2018
The only mention of displayWaveformLabels I can find is on this page:
That function is not included in the zip file available from GitHub, so presumably it is an undocumented function in one of the two toolboxes mentioned at the top of the page. Do you have both of the those toolboxes installed and have current licenses for them?
  8 commentaires
Stephen23
Stephen23 le 6 Nov 2018
Modifié(e) : Stephen23 le 6 Nov 2018
"What is TMW?"
TMW == The MathWorks, the company who develop and sell the products MATLAB, Simulink, etc. They also own this website (including this forum), which is why the "Contact Us" link at the top of each page will get you in touch with them. Try selecting Contact Us -> Contact Support -> Create Service Request
G
G le 6 Nov 2018
Got it. I've never seen it abbreviated like that. Thanks

Connectez-vous pour commenter.

Plus de réponses (3)

Walter Roberson
Walter Roberson le 10 Fév 2019
displayWaveformLabels is under the MATLAB installation in examples/deeplearning_shared/main/displayWaveformLabels.m . This requires R2018b or later for this path.
That directory is not on your MATLAB path by default.
When you use openExample() with the right example name, then openExample() will copy the file onto your path.

madhan ravi
madhan ravi le 6 Nov 2018
Modifié(e) : madhan ravi le 6 Nov 2018
whos displayWaveformLabels %for variable checking
which displayWaveformLabels %for function checking
In command window might be the case there is no variable in the .mat file also it’s Not an inbuilt matlab function that’s why the error is occurring. if both returns not found then best is to download the toolbox as Stephen suggested.
  4 commentaires
Walter Roberson
Walter Roberson le 10 Fév 2019
Mathworks does not give out permission for such things, so I have deleted the code.
Dharmendra Gurve
Dharmendra Gurve le 12 Fév 2019
I'm sorry for the post. I was not aware of the terms and conditions.

Connectez-vous pour commenter.


Dr. Muhammad E. H. Chowdhury
You will not get error if you use Matlab2019a. labeledSignalSet will only work with 2019a version.
  1 commentaire
Walter Roberson
Walter Roberson le 11 Sep 2019
It is not clear what the relevance is of labeledSignalSet to a question about displayWaveformLabels ?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Historical Contests dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by