Helper Feature Vector2 Sequence

I am using Matlab 2019b but still using "HelperFeatureVector2Sequence" function gives error as undefined function. Why ????

Answers (3)

Do you have the Audio Toolbox installed? If you type
ver
at the command window prompt, do you see the Audio Toolbox listed?

3 Comments

It is possible that you have it installed, but not licensed.
Does it appear in the list after you type ...
license('inuse')
Copying Moomal Tariq's comment here, instead of being an "answer":
"when i type license('inuse') it just says MATLAB ...i am using trial version"
That command lists all the toolboxes you are licensed to use. (That is different from just being installed.)
I suggest you go to the license center to see if you can figure it out from there, or contact support from the link on that page.

Sign in to comment.

jibrahim
jibrahim on 11 Nov 2019
Hi Moomal,
This function is not on path by default. I believe it is used in a featured example in Audio Toolbox. to get access to this function, browse to the doc page of the featured example, and then click the 'Open Script' button (around the top right on the doc page). That should take you to a folder that contains the code for the example (including the function you are looking for).

5 Comments

hi,
I'm facing the same problem, I tried to look for the specific function, which I'm using in one of the featured examples (in the example it works), but I can't find it. Do you know, if I download and run the exaple on my machine, which is the repository for the function? Because I can find the example, but not the function, that works perfectly when called running the example
Floriana,
what example are you running? This one?
The function HelperFeatureVector2Sequence is defined at the bottom of that example. If you want to use it outside the example, you should copy it and save it into its own .m file.
Thankyou very much!
May I ask you why in the function the brace indexing is used with the variable ''features'':
sequencePerSegment{ii} = max(floor((size(features{ii},2) - featureVectorsPerSequence)/hopLength) + 1,0);
I'm asking you this because with my own variable ''features'' it leads to an error (''Brace indexing is not supported for variables of this type.'', the type is double), but with the ''features'' of the featured example it works
Brace indexing is used because features is a cell array in the example. You will have to modify the function if you are not using cells.
I used the ''Voice Activity Detection Noise Using Deep Learning Example'', where i can find:
trainFeatureCell = helperFeatureVector2Sequence(featuresTraining',sequenceLength,sequenceOverlap);
at the beginning of the function you have:
function [sequences,sequencePerSegment] = HelperFeatureVector2Sequence(features,featureVectorsPerSequence,featureVectorOverlap)
so I'm giving to the function my featuresTraining' as the features.
The featureTraining type is double, but the script is still working, which is somenthing that I can't understand

Sign in to comment.

Categories

Find more on Get Started with Audio Toolbox in Help Center and File Exchange

Products

Tags

Asked:

on 10 Nov 2019

Commented:

on 24 Jun 2021

Community Treasure Hunt

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

Start Hunting!