I am trying to follow "Detecting Outbreaks and Significant Changes in Signals".
Link as follow: Link
load WestAfricanEbolaOutbreak2014
plot(WHOreportdate, [TotalCasesGuinea TotalCasesLiberia TotalCasesSierraLeone],'.-')
legend('Guinea','Liberia','Sierra Leone');
title('Total suspected, probable and confirmed cases of Ebola virus disease');
When I run the code, it said:
Error using load
Unable to read file 'WestAfricanEbolaOutbreak2014'. No such file or directory.

댓글 수: 2

dpb
dpb 2019년 1월 20일
The file has to be in a location on MATLABPATH or use a fully-qualified file name --
doc fullfile
may be useful for the latter...
Matlaber
Matlaber 2019년 1월 20일
can you elebrate more?
I am following the matlab website.

댓글을 달려면 로그인하십시오.

 채택된 답변

Star Strider
Star Strider 2019년 1월 20일

0 개 추천

That example should be at:
web(fullfile(docroot, 'signal/examples/detecting-outbreaks-and-significant-changes-in-signals.html'))
Run that from a script (or your Command Window). If you have it, that should open the Help Browser to that page. (The documentation does not mention when that example was added.)

댓글 수: 11

Matlaber
Matlaber 2019년 1월 20일
Thanks.
  1. Do you mean run the "example/code" you shown above in my CMD? Will it be matlab directories?
  2. I actually want to run the example in my matlab tools, so that i can modify the dataset. However it said:
Error using load
Unable to read file 'WestAfricanEbolaOutbreak2014'. No such file or directory.
Star Strider
Star Strider 2019년 1월 20일
My pleasure.
Run that line from a script or your Command Window.
If you have the correct MATLAB version, that should open the Help Browser to the Detecting Outbreaks and Significant Changes in Signals example documentation page.
Star Strider
Star Strider 2019년 1월 20일
‘I am using Matlab version 2015b.
You do not have the Example, or the functions you need to use with it (introduced in R2016a).
Matlaber
Matlaber 2019년 1월 20일
So even load the file with version 2015b?
load WestAfricanEbolaOutbreak2014
plot(WHOreportdate, [TotalCasesGuinea TotalCasesLiberia TotalCasesSierraLeone],'.-')
legend('Guinea','Liberia','Sierra Leone');
title('Total suspected, probable and confirmed cases of Ebola virus disease');
this is not about cumsum or cusum question here.
Star Strider
Star Strider 2019년 1월 20일
So even load the file with version 2015b?
Using load to import the file is not the problem. You do not have the file in your version of the Signal Processing Toolbox.
this is not about cumsum or cusum question here.
I know. You likely do not have cusum either.
If you want to run that Example, you need to upgrade at least to R2016a.
Matlaber
Matlaber 2019년 1월 20일
Thanks, noted now.
Meaning the file "WestAfricanEbolaOutbreak2014" is only available for version at least R2016a.
I need version R2016a to run:
load WestAfricanEbolaOutbreak2014
Star Strider
Star Strider 2019년 1월 20일
My pleasure.
Yes. You need R2016a or later versions to do that.
Matlaber
Matlaber 2019년 1월 20일
Thanks!
What is the method to find out which version contain which functions?
For example, how do you know cusum is available on R2016a onwords, and not R2018b onwords?
Star Strider
Star Strider 2019년 1월 20일
My pleasure!
The only certain way to know what functions have been added to new releases would most likely be to search the Release Notes (link). It would not tell the functions that are already in a particular release. You would have to search the documentation for the release to find that information.
If you are searching for a specific function, they usually (but not always) have the version introduction listed near the end of the documentation page for the function. The best place to do that is the online documentation, since it always has the lastest release documentation posted.
Matlaber
Matlaber 2019년 1월 20일
Thanks!
I saw the version stated in the document.
Thanks a lot. Well explained.
Star Strider
Star Strider 2019년 1월 20일
As always, my pleasure!
Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Files and Folders에 대해 자세히 알아보기

태그

질문:

2019년 1월 20일

댓글:

2019년 1월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by