MATLAB Answers

Waveform Segmentation Using Deep Learning: resizeSignal does not seem to work

2 views (last 30 days)
I am trying to repeat the example given in MATLAB site.
when I try to execute the following lines of commands, theres is no output produced on the workspace,
[signalsTrain,labelsTrain] = resizeSignals(trainQT);
[signalsTest,labelsTest] = resizeSignals(testQT);
instead I keep getting a message on my command window in red. I'm on R2019b
'resizeSignals' is used in Waveform Segmentation Using Deep Learning.
Can someone help me out on this, please?
Screenshot from 2020-02-03 12-15-40.png

Accepted Answer

Shunichi Kusano
Shunichi Kusano on 5 Feb 2020
Hi Althaff,
the error relates to the path setting. You need to set the path to the file location or just copy resizeSignals.m from the original example folder to your current folder. Then you can use it.
  1 Comment
Althaff Mohideen
Althaff Mohideen on 6 Feb 2020
Hi There,
Thanks for the pointer.
Is not the resizeSignals.m file supposed to be within the Deep-Learning toolbox? and just run without needing to copy paste?
the example I was referring to is from the mathwork site, here is the (Link).
by the way the resizeSignals.m file is located at /usr/local/MATLAB/R2019a/examples/deeplearning_shared/main/resizeSignals.m
I hope this is the default matlab installation location for linux boxes.
I will try your suggestion and see if it works, and will report it.
Thanks again.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!