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?

 채택된 답변

Stephen23
Stephen23 2018년 11월 6일
편집: Stephen23 2018년 11월 6일

1 개 추천

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

G
G 2018년 11월 6일
Yes I have both installed
@G: run this command, and tell us what the output is:
which displayWaveformLabels -all
G
G 2018년 11월 6일
I ran it in the command window and it says 'displayWaveformLabels' not found
G
G 2018년 11월 6일
I am trying to do the https://www.mathworks.com/help/signal/examples/waveform-segmentation-using-deep-learning.html?searchHighlight=displayWaveformLabels example and I am not sure how they used the function and now it is not working for me
Stephen23
Stephen23 2018년 11월 6일
편집: Stephen23 2018년 11월 6일
@G: sure, I also found that page when I used [major internet search engine] to search for that function. Unfortunately this function is not mentioned anywhere else on the web, so it does not seem to be a third-party function, nor is it mentioned in the online help. I do not have those toolboxes, so I have no idea if the function is included somehow.
You should contact TMW and ask for support on this, because this is an issue with their documentation (it is not clear where that function comes from, or how it should be obtained). You can find the Contact Us link at the top of this page. Include a link to this thread.
G
G 2018년 11월 6일
What is TMW?
Stephen23
Stephen23 2018년 11월 6일
편집: Stephen23 2018년 11월 6일
"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 2018년 11월 6일
Got it. I've never seen it abbreviated like that. Thanks

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

추가 답변 (3개)

Walter Roberson
Walter Roberson 2019년 2월 10일

2 개 추천

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 2018년 11월 6일
편집: madhan ravi 2018년 11월 6일

0 개 추천

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

Dharmendra Gurve
Dharmendra Gurve 2019년 2월 8일
Here is the function.
Stephen23
Stephen23 2019년 2월 8일
@Dharmendra Gurve: you have just publicly posted copyright code, which is clearly marked:
% Copyright 2018 The MathWorks, Inc.
I presume that your license conditions do NOT give you permission to distribute and that you do NOT have permission from the copyright owner to distribute their code. Please reply confirming that you have this permission, otherwise that code will be removed.
Walter Roberson
Walter Roberson 2019년 2월 10일
Mathworks does not give out permission for such things, so I have deleted the code.
Dharmendra Gurve
Dharmendra Gurve 2019년 2월 12일
I'm sorry for the post. I was not aware of the terms and conditions.

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

Dr. Muhammad E. H. Chowdhury
Dr. Muhammad E. H. Chowdhury 2019년 9월 11일

0 개 추천

You will not get error if you use Matlab2019a. labeledSignalSet will only work with 2019a version.

댓글 수: 1

Walter Roberson
Walter Roberson 2019년 9월 11일
It is not clear what the relevance is of labeledSignalSet to a question about displayWaveformLabels ?

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

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

G
G
2018년 11월 6일

댓글:

2019년 9월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by