strong.mat file not found in MATLAB installation

6 views (last 30 days)
Hi all,
I am tyring to run the MATLAB example in my instalation.
But the command load('strong.mat') does not work. I look in my MATLAB instalation and I cannot find the file in the signal processing toolkit. So it is not possible to run the example.
Any ideas? I have the latest version of MATLAB.
  2 Comments
Dyuman Joshi
Dyuman Joshi on 23 Oct 2023
There does not seem to be any "strong.mat" file in the directory.
However, another such example file, i.e. carsmall.mat from the Stats and ML toolbox is available (used in 1st example of gscatter) -
which strong.mat
'strong.mat' not found.
which carsmall.mat
/MATLAB/toolbox/stats/statsdata/carsmall.mat
Star Strider
Star Strider on 23 Oct 2023
I just now tried this (in the Command Window) in MATLAB Online (since that may be different than doing the same command here) —
which('strong.mat','-all')
'strong.mat' not found.
It apparently just doesn’t exist.
I have the Signal Processing Toolbox, so I should have access to the file in MATLAB Online as well, if it’s available. It isn’t.

Sign in to comment.

Accepted Answer

the cyclist
the cyclist on 23 Oct 2023
Edited: the cyclist on 24 Oct 2023
The reason is that starting with R2023a, the default MATLAB installation no longer install a local copy of the documentation. This question from the MW Support Team does not address your specific question, but has helpful info.
Your options are to install the documentation locally (using the instructions here), or go onto MATLAB Online to do that example.
Update: Please see also Walter's answer, which gives another handy option that I had forgotten about.
  2 Comments
Dyuman Joshi
Dyuman Joshi on 23 Oct 2023
Does the documentation contain corresponding '.mat' files? Or are they a part of the toolbox?
Marta
Marta on 23 Oct 2023
Moved: the cyclist on 24 Oct 2023
Thanks a lot for all your help!!!! Really appreciated!!

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 24 Oct 2023
You need to run
openExample('signal/SpeechSignalCompressionExample')
If you do not have the documentation (with examples) installed, then MATLAB will download the necessary files from Mathworks. (This does require that you have an internet connection.)
If you do have local documentation installed then the file should already be available -- but until you run the appropriate openExample command, the file name is something else completely.
  1 Comment
the cyclist
the cyclist on 24 Oct 2023
@Marta, for any example you find online, there will generally be a button that looks like this
that will copy the openExample command (like the one Walter has shared here).
As long as you have the corresponding toolbox, you should be able to run it locally. (The same is true for one's ability to run it online -- you need the toolbox, if it is not a core MATLAB example.)
I had forgotten about this possibility when I posted my answer.

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!