how to use helperGaitPlot?

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 个评论

Do you have the Signal Processing Toolbox?
Definetly have
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.
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
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.
Thanks for your reply.
In my CMD:
'List' is not recognized as an internal or external command,
operable program or batch file.
@Hsein Ping Kew: You have to insert both commands:
List = dir(fullfile(matlabroot, '**', 'helperGaitPlot.*'))
List.folder
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.
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.

请先登录,再进行评论。

 采纳的回答

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 个评论

I get below:
>> query = which('HelperGaitPlot.m')
query =
0×0 empty char array
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.
As always, my pleasure!
Sorry, my Matlab version is 2017b.
I think because of this reason.
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.
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])
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.
thanks.
I guess you are using matlab version 2018b.
i just wondering how to use this function "helperGaitPlot" which i cannot find information online.
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.

请先登录,再进行评论。

更多回答(2 个)

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

3 个评论

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'
This means, that you have installed the Signal Processing Toolbox, but either no license for it or removed it from Matlab's path.
Sorry, my Matlab version is 2017b

请先登录,再进行评论。

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 个评论

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

请先登录,再进行评论。

类别

Community Treasure Hunt

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

Start Hunting!

Translated by