Help with an error occurring
显示 更早的评论
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?
采纳的回答
更多回答(3 个)
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
2018-11-6
编辑:madhan ravi
2018-11-6
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
2019-2-8
Here is the function.
Stephen23
2019-2-8
% 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
2019-2-10
Mathworks does not give out permission for such things, so I have deleted the code.
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
2019-9-11
0 个投票
1 个评论
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 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

