How to use helperGaitPlot
helperGaitPlot('als1m');
xlim([0 30])
when i run, it said:
>> helperGaitPlot('als1m');
xlim([0 30])
Undefined function or variable 'helperGaitPlot'.
In this link Link
I checked, is not about Matlab version

9 comentarios

Jan
Jan el 22 de En. de 2019
Do you have the Signal Processing Toolbox?
Matlaber
Matlaber el 22 de En. de 2019
Definetly have
Jan
Jan el 28 de En. de 2019
Please post, why you assume this. Do you find helperGaitPlot.m inside Matlab's installation folder using the file explorer of your operating system? Or maybe:
List = dir(fullfile(matlabroot, '**', 'helperGaitPlot.*'))
List.folder
Are you able to run other examples of the Signal Processing Toolbox?
Currently all we know, is that Matlab cannot find a certain function on your computer. Beside bold guessing, there is nothing we can do. Please try to find and to post more information. Obviously something goes wrong, than "I checked, is not about Matlab version" is less useful than posting, how you have checked this. Maybe this test is flawed.
Matlaber
Matlaber el 28 de En. de 2019
Thanks for your reply.
In replying your questions:
  1. May I know how can we check what function is provided in my matlab version? Is there any method to check?
  2. Yes, other example is runing in my matlab. I did not sure what you mean by Signal Processing Toolbox?
  3. Can you elebarate more how use use this: in CMD?
List = dir(fullfile(matlabroot, '**', 'helperGaitPlot.*'))
List.folder
Jan
Jan el 28 de En. de 2019
You have explained: "Definetly have", but now you do not know what the SPT is? Confusing. The Signal Processing Toolbox is a toolbox provided by MathWorks. You can see, if it is installed, by using the ver command.
You can check, if a function is available, simply by using it. If you get the message, that it is not found, it is not found.
The posted command is easy to use: Simply copy&paste it into the command windows and press Enter. It searchs in the complete installation directory recursively for the file "helperGaitPlot.m". You can search this with the file explorer of your operating system also.
Matlaber
Matlaber el 28 de En. de 2019
Thanks for your reply.
In my CMD:
'List' is not recognized as an internal or external command,
operable program or batch file.
Jan
Jan el 28 de En. de 2019
@Hsein Ping Kew: You have to insert both commands:
List = dir(fullfile(matlabroot, '**', 'helperGaitPlot.*'))
List.folder
Matlaber
Matlaber el 28 de En. de 2019
Is the same
C:\Users>List = dir(fullfile(matlabroot, '**', 'helperGaitPlot.*')) List Folder
'List' is not recognized as an internal or external command,
operable program or batch file.
C:\Users>List.folder
'List.folder' is not recognized as an internal or external command,
operable program or batch file.
C:\Users>List = dir(fullfile(matlabroot, '**', 'helperGaitPlot.*'))
'List' is not recognized as an internal or external command,
operable program or batch file.
Jan
Jan el 28 de En. de 2019
You have to run the shown commands inside Matlab, of course, not in the shell of your operating system. Start Matlab and run the commands in Matlab's command window.

Iniciar sesión para comentar.

 Respuesta aceptada

Star Strider
Star Strider el 28 de En. de 2019

0 votos

Try this:
query = which('HelperGaitPlot.m')
When I run it, I get:
query =
'C:\Users\<MyUserNameOnThisComputer>\Documents\MATLAB\Examples\signal\GaitAnalysisExample\helperGaitPlot.m'
I am also running R2018b.

10 comentarios

Matlaber
Matlaber el 28 de En. de 2019
I get below:
>> query = which('HelperGaitPlot.m')
query =
0×0 empty char array
Star Strider
Star Strider el 28 de En. de 2019
Apparently you do not have it. Be sure you have the R2018b Signal Processing Toolbox. If so, you should have the Examples, including ‘Extracting Classification Features from Physiological Signals’ , of which that is a part.
If you have the necessary Toolboxes licensed, downloaded, and installed, and you do not have the functions to do the Examples, use the Contact Us link in the upper right corner of this page to get help from MathWorks.
First, execute the ver command from your Command Window or a script. You will need it.
Matlaber
Matlaber el 28 de En. de 2019
Thanks!
Star Strider
Star Strider el 29 de En. de 2019
As always, my pleasure!
Matlaber
Matlaber el 29 de En. de 2019
Sorry, my Matlab version is 2017b.
I think because of this reason.
Star Strider
Star Strider el 29 de En. de 2019
Upgrading to R2019a (that should be out in the not distant future) is likely your best option.
Anyway, you likely have the Signal Processing Toolbox functions used in that example. The midcross (link) function was introduced in R2012a, and dtw (link) was introduced in R2016a. You can use any physiological signal.
Matlaber
Matlaber el 5 de Feb. de 2019
Thanks for your reply.
My uni last version is 2017b. I have to wait awhile i guess.
Can I know what is your output after you run below?
helperGaitPlot('als1m');
xlim([0 30])
Star Strider
Star Strider el 5 de Feb. de 2019
As always, my pleasure.
The code snippet produices the same plot as in Measure Inter-Stride Time Intervals (link).
You already have all the functions (midcross, dtw) that documentation page uses. Any physiological (or other) signal will likely work, so the ones provided for the Extracting Classification Features from Physiological Signals page are not necessary for you to do essentially the same thing with your signals.
Matlaber
Matlaber el 5 de Feb. de 2019
thanks.
I guess you are using matlab version 2018b.
i just wondering how to use this function "helperGaitPlot" which i cannot find information online.
Star Strider
Star Strider el 5 de Feb. de 2019
If I remember correctly, it just loads and displays the file. It doesn’t do any processing, so you’re not missing anything by not having it.

Iniciar sesión para comentar.

Más respuestas (2)

Matlaber
Matlaber el 27 de En. de 2019

0 votos

It still not working even with Matlab version 2018b.
It said:
Undefined function 'helperGaitPlot' for input arguments of type 'char'.

3 comentarios

Matlaber
Matlaber el 28 de En. de 2019
I typed in Matlab's command window, here is it:
>> List = dir(fullfile(matlabroot, '**', 'helperGaitPlot.*'))
List.folder
List =
struct with fields:
name: 'helperGaitPlot.m'
folder: 'C:\Program Files\MATLAB\R2017b\examples\signal\main'
date: '23-Oct-2015 15:22:36'
bytes: 228
isdir: 0
datenum: 7.3626e+05
ans =
'C:\Program Files\MATLAB\R2017b\examples\signal\main'
Jan
Jan el 29 de En. de 2019
This means, that you have installed the Signal Processing Toolbox, but either no license for it or removed it from Matlab's path.
Matlaber
Matlaber el 29 de En. de 2019
Sorry, my Matlab version is 2017b

Iniciar sesión para comentar.

Jan
Jan el 28 de En. de 2019

0 votos

Let me guess: You typed
helperGaitPlot('als1m')
in the command shell of the operating system? Then the problem is clear: Run it inside Matlab. Start Matlab and type the commands in Matlab's command window.

2 comentarios

Matlaber
Matlaber el 28 de En. de 2019
I typed in Matlab's command window, here is it:
>> helperGaitPlot('als1m')
Undefined function or variable 'helperGaitPlot'.
Matlaber
Matlaber el 28 de En. de 2019
The first code for the link is:
helperGaitPlot('als1m');
xlim([0 30])

Iniciar sesión para comentar.

Preguntada:

el 22 de En. de 2019

Comentada:

el 5 de Feb. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by